The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
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 } }
|