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 = {
|
2020-02-25 18:56:05 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'inferno': 'inferno/dist/index.dev.esm.js'
|
|
|
|
}
|
|
|
|
},
|
2020-01-24 21:27:59 +00:00
|
|
|
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)\/).*/,
|
2020-04-15 03:23:11 +00:00
|
|
|
loader: require.resolve('babel-loader'),
|
2020-01-24 21:27:59 +00:00
|
|
|
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
|
|
|
]
|
|
|
|
};
|