bpmn-js-spiffworkflow/webpack.config.js

29 lines
572 B
JavaScript
Raw Normal View History

2022-06-07 18:16:49 +00:00
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
bundle: ['./app/app.js']
},
output: {
path: __dirname + '/public',
filename: 'app.js'
},
module: {
rules: [
{
test: /\.bpmn$/,
use: 'raw-loader'
}
]
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: 'assets/**', to: 'vendor/bpmn-js', context: 'node_modules/bpmn-js/dist/' },
{ from: '**/*.{html,css}', context: 'app/' }
]
})
],
mode: 'development',
devtool: 'source-map'
};