CodiceFiscaleJS/webpack.config.js

35 lines
627 B
JavaScript
Raw Normal View History

2017-12-19 09:36:43 +01:00
const path = require('path')
const webpack = require('webpack')
2017-03-10 12:03:36 +01:00
module.exports = {
entry: {
2017-12-19 09:36:43 +01:00
'codice.fiscale': './src/index.js'
2017-03-10 12:03:36 +01:00
},
output: {
2017-12-18 21:53:20 +01:00
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.json$/,
loader: 'json-loader'
}, {
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['babel-preset-env']
}
}
}
]
2017-03-10 12:41:10 +01:00
},
plugins: [
2017-12-18 21:53:20 +01:00
new webpack
.optimize
.UglifyJsPlugin()
2017-03-10 12:41:10 +01:00
]
2017-12-19 09:36:43 +01:00
}