CodiceFiscaleJS/webpack.config.js
2017-03-10 12:41:10 +01:00

19 lines
364 B
JavaScript

const path = require('path'),
UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: {
'codice.fiscale': './lib/codice.fiscale.js'
},
output: {
library: 'CodiceFiscale',
libraryTarget: 'window',
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new UglifyJSPlugin()
]
};