Files
streamwall/webpack.web.config.js
Max Goodhart cf73dcf604 WIP attempt to wire up electron-forge
I wasn't able to get this fully working, IIRC; the challenge was getting
the webpack build for web stuff to happen reliably.
2024-08-19 17:50:50 -07:00

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' }],
}),
],
}