1
0
mirror of https://github.com/c9fe/22120.git synced 2024-11-14 23:12:30 +01:00
22120/webpack.config.js
Cris Stringfellow ce4d15f943 "Crafting new build setup"
Former-commit-id: c20381bd5f5e4bb7ac633653b06956779ab9e20c
2021-12-27 21:49:08 +08:00

18 lines
347 B
JavaScript

const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: "./src/app.js",
output: {
path: path.resolve(__dirname, 'build'),
filename: "22120.js"
},
target: "node",
node: {
__dirname: false
},
plugins: [
new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true }),
]
};