fanzine/webpack.config.js

19 lines
435 B
JavaScript
Raw Permalink Normal View History

2022-03-29 13:23:10 +00:00
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default {
entry: {
2022-03-31 16:47:26 +00:00
main: "./lib/es6/src/Main.mjs",
2022-03-29 13:23:10 +00:00
},
2022-03-30 13:49:07 +00:00
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), 'node_modules']
},
2022-03-29 13:23:10 +00:00
mode: 'production',
output: {
filename: "fanzine.js",
path: path.resolve(__dirname, "static/popup/"),
}
};