2017-11-28 21:43:25 +01:00
|
|
|
module.exports = {
|
2017-11-28 22:21:35 +01:00
|
|
|
entry: {
|
|
|
|
infoscreens: './index.js',
|
|
|
|
infodisplay: './msgflo.js',
|
|
|
|
},
|
2017-11-28 21:43:25 +01:00
|
|
|
output: {
|
|
|
|
path: __dirname,
|
2017-11-28 22:21:35 +01:00
|
|
|
filename: 'dist/[name].js',
|
|
|
|
library: '[name]',
|
|
|
|
libraryTarget: 'umd',
|
2017-11-28 21:43:25 +01:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2017-11-28 22:21:35 +01:00
|
|
|
exclude: /paho.mqtt.js/,
|
2017-11-28 21:43:25 +01:00
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
presets: ['@babel/preset-env'],
|
|
|
|
plugins: ['transform-class-properties'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-11-28 22:21:35 +01:00
|
|
|
},
|
|
|
|
externals: {
|
|
|
|
newrelic: 'commonjs newrelic',
|
|
|
|
tv4: 'commonjs tv4',
|
|
|
|
'ampqlib/callback_api': 'commonjs ampqlib/callback_api',
|
|
|
|
mqtt: 'commonjs mqtt',
|
|
|
|
},
|
|
|
|
node: {
|
|
|
|
fs: 'empty',
|
|
|
|
},
|
2017-11-28 21:43:25 +01:00
|
|
|
};
|