CodiceFiscaleJS/webpack.config.js
2017-09-05 23:56:46 +02:00

20 lines
457 B
JavaScript

const path = require('path'),
UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: {
'codice.fiscale': './src/codice.fiscale.js'
},
output: {
// this will publish the module on the window object in order to support the karma tests
library: 'CodiceFiscale',
libraryTarget: 'window',
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new UglifyJSPlugin()
]
};