CodiceFiscaleJS/webpack.config.js

19 lines
364 B
JavaScript
Raw Normal View History

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-03-10 12:25:44 +01:00
'codice.fiscale': './lib/codice.fiscale.js'
2017-03-10 12:03:36 +01:00
},
output: {
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
};