cr-connect-bpmn/webpack.config.js

42 lines
971 B
JavaScript
Raw Normal View History

const WebpackNotifierPlugin = require('webpack-notifier');
2020-01-27 16:07:40 +00:00
const webpack = require('webpack');
const path = require('path');
module.exports = {
2020-02-25 18:56:05 +00:00
resolve: {
alias: {
'inferno': 'inferno/dist/index.dev.esm.js'
}
},
module: {
rules: [
{
test: /\.scss$/,
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [
"postcss-short",
],
},
}
},
{
test: /\.js$/,
exclude: /node_modules\/(?!(dmn-js|dmn-js-drd|dmn-js-shared|dmn-js-decision-table|table-js|dmn-js-literal-expression|diagram-js)\/).*/,
loader: require.resolve('babel-loader'),
options: {
2020-01-27 16:07:40 +00:00
presets: ['@babel/preset-react', '@babel/preset-env']
}
}
]
},
plugins: [
new WebpackNotifierPlugin({
alwaysNotify: true,
title: 'App Name',
contentImage: path.join(__dirname, 'image.png')
2020-01-27 16:07:40 +00:00
})
]
};