2017-03-10 12:41:10 +01:00
|
|
|
const path = require('path'),
|
|
|
|
UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
|
2017-03-10 12:03:36 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2017-09-05 23:56:46 +02:00
|
|
|
'codice.fiscale': './src/codice.fiscale.js'
|
2017-03-10 12:03:36 +01:00
|
|
|
},
|
|
|
|
output: {
|
2017-03-10 12:46:46 +01:00
|
|
|
// this will publish the module on the window object in order to support the karma tests
|
2017-03-10 12:20:20 +01:00
|
|
|
library: 'CodiceFiscale',
|
|
|
|
libraryTarget: 'window',
|
2017-03-10 12:03:36 +01:00
|
|
|
filename: '[name].js',
|
|
|
|
path: path.resolve(__dirname, 'dist')
|
2017-03-10 12:41:10 +01:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new UglifyJSPlugin()
|
|
|
|
]
|
2017-03-10 12:03:36 +01:00
|
|
|
};
|