webpack.config.js 704 Bytes
const path=require('path');


module.exports = {
    entry : './arcsapp.json',
    mode: "none",

    output: {
        path: path.resolve(__dirname, ''),
        filename: "loop_bundle.js"
    },
    module: {
        rules: [
            {
                test: /arcsapp\.json$/,
                rules: [{
                    loader: "val-loader",
                    options: {
                        executableFile: path.resolve( __dirname, "../../src", "arcsapp_bundler.js")
                    }
                }]
            },
            {
                test: /arcsapp\.json$/,
                //type: "asset/inline"
                type: "javascript/auto"
            }
        ]
    }

};