mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
I wasn't able to get this fully working, IIRC; the challenge was getting the webpack build for web stuff to happen reliably.
33 lines
662 B
JavaScript
33 lines
662 B
JavaScript
const path = require('path')
|
|
const CopyPlugin = require('copy-webpack-plugin')
|
|
const baseConfig = require('./webpack.base.config')
|
|
|
|
module.exports = {
|
|
...baseConfig({
|
|
babel: {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: 'commonjs',
|
|
targets: '> 0.25%, not dead',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
}),
|
|
devtool: 'cheap-source-map',
|
|
target: 'web',
|
|
entry: {
|
|
control: './src/web/entrypoint.js',
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, '.webpack/main/web'),
|
|
},
|
|
plugins: [
|
|
new CopyPlugin({
|
|
patterns: [{ from: 'src/web/*.ejs', to: '[name].ejs' }],
|
|
}),
|
|
],
|
|
}
|