2020-01-24 21:27:59 +00:00
|
|
|
const WebpackNotifierPlugin = require('webpack-notifier');
|
2020-01-27 16:07:40 +00:00
|
|
|
const webpack = require('webpack');
|
2020-01-24 21:27:59 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
loader: 'postcss-loader',
|
|
|
|
options: {
|
|
|
|
ident: 'postcss',
|
|
|
|
plugins: () => [
|
|
|
|
require('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: 'babel-loader',
|
|
|
|
options: {
|
2020-01-27 16:07:40 +00:00
|
|
|
presets: ['@babel/preset-react', '@babel/preset-env']
|
2020-01-24 21:27:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new WebpackNotifierPlugin({
|
|
|
|
alwaysNotify: true,
|
|
|
|
title: 'App Name',
|
|
|
|
contentImage: path.join(__dirname, 'image.png')
|
2020-01-27 16:07:40 +00:00
|
|
|
})
|
2020-01-24 21:27:59 +00:00
|
|
|
]
|
|
|
|
};
|