const isProduction = process.env.NODE_ENV === "production" module.exports = { plugins: [ "lasso-marko", "lasso-less", ], outputDir: "./.static", // Place all generated JS/CSS/etc. files into the "static" dir bundlingEnabled: isProduction, // Only enable bundling in production minify: isProduction, // Only minify JS and CSS code in production fingerprintsEnabled: isProduction, // Only add fingerprints to URLs in production loadPrebuild: isProduction, // Only load prebuilt stuff in prod. require: { builtins: { fs: require.resolve("empty-module"), }, transforms: isProduction ? [ { transform: "lasso-babel-transform", config: { extensions: [".js", ".es6"], // Enabled file extensions. Default: [".js", ".es6"] babelOptions: { presets: [ "es2015" ] } } } ] : null } }