mirror of
https://github.com/danog/CodiceFiscaleJS.git
synced 2024-11-26 20:14:55 +01:00
20 lines
457 B
JavaScript
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()
|
|
]
|
|
};
|