1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-12 03:16:48 +02:00
TableFilter/webpack.config.js

47 lines
1.4 KiB
JavaScript
Raw Normal View History

2015-05-14 12:08:19 +02:00
var path = require('path');
module.exports = {
2015-06-06 14:22:13 +02:00
cache: true,
entry: path.join(__dirname, '/src/tablefilter.js'),
output: {
publicPath: '/dist/tablefilter/',
path: path.join(__dirname, '/dist/tablefilter'),
filename: 'tablefilter.js',
chunkFilename: '[name]-[chunkhash].js',
// chunkFilename: '[name].js',
libraryTarget: 'umd'
},
2015-06-06 14:22:13 +02:00
resolve: {
extensions: ['', '.js'],
alias: {
sortabletable: '../../../libs/sortabletable.js'
}
},
module: {
// exprContextRegExp: /$^/,
// exprContextCritical: true,
loaders: [{
test: path.join(__dirname, 'src'),
exclude: /node_modules/,
query: {
compact: false
},
loader: 'babel-loader'
}]
}
2015-06-06 14:22:13 +02:00
// ,
// plugins: [
// // new webpack.DefinePlugin({
// // 'process.env': {
// // // This has effect on the react lib size
// // 'NODE_ENV': JSON.stringify('production')
// // }
// // }),
// // new webpack.IgnorePlugin(/adapterSortabletable$/),
// new Clean(['dist']),
// new webpack.optimize.DedupePlugin(),
// new webpack.optimize.MinChunkSizePlugin({ minChunkSize: 10000 }),
// new webpack.optimize.UglifyJsPlugin()
// ]
};