26 lines
515 B
JavaScript
26 lines
515 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: './web/public/elm-setup.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'web/public'),
|
|
filename: 'bundle.js',
|
|
publicPath: '/public/'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.m?js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['@babel/preset-env'],
|
|
plugins: ['@babel/plugin-syntax-dynamic-import']
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|