Files
canonical-design/webpack.config.js
2025-02-18 11:12:05 +01:00

20 lines
454 B
JavaScript

// Purpose: Webpack configuration for the project
const entry = {
["cookie-policy"]: "./static/js/cookie-policy.js",
["navigation"]: "./static/js/navigation.js",
};
const development = process.env.DEVEL;
module.exports = {
entry: entry,
output: {
filename: "[name].js",
path: __dirname + "/static/js/dist",
},
mode: development ? "development" : "production",
devtool: development ? "eval-source-map" : "source-map",
};