28 lines
544 B
JavaScript
28 lines
544 B
JavaScript
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: './bootstrap.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'bootstrap.js',
|
|
},
|
|
mode: 'development',
|
|
plugins: [
|
|
new CopyWebpackPlugin({
|
|
patterns: [{ from: 'index.html' }],
|
|
})
|
|
],
|
|
experiments: {
|
|
asyncWebAssembly: true,
|
|
syncWebAssembly: true,
|
|
},
|
|
devServer: {
|
|
static: {
|
|
directory: path.join(__dirname, "dist"),
|
|
},
|
|
compress: true,
|
|
port: 3000,
|
|
},
|
|
}
|