mirror of
https://github.com/canonical/canonical-design.git
synced 2025-07-21 23:22:58 +00:00
20 lines
454 B
JavaScript
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",
|
|
};
|