mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-22 18:57:46 +00:00
23 lines
554 B
JavaScript
23 lines
554 B
JavaScript
const path = require('path')
|
|
const webpack = require('webpack')
|
|
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
|
|
module.exports = {
|
|
entry: './app/js/main.js',
|
|
externals: {
|
|
halfmoon: 'halfmoon',
|
|
anitomyscript: 'anitomyscript'
|
|
},
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, 'app/js'),
|
|
sourceMapFilename: 'bundle.js.map'
|
|
},
|
|
mode: 'development',
|
|
devtool: 'source-map',
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
process: 'process-fast'
|
|
}),
|
|
new NodePolyfillPlugin()
|
|
]
|
|
}
|