mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 04:37:04 +08:00
5b74beabd6
* Table * úsers api * Ádding envs and version * Community Table Added * Ádding redux * Adding loading data state * Community Actions * Adding Inmutable * Fetching commenters * Search commenters * Linting and translations * Ádding Sort * sortBuilder * pagr * request per page, pager and mor * package.json * new Page actiokn * éslint * Changes and cleaner comps * removed console.log
24 lines
554 B
JavaScript
24 lines
554 B
JavaScript
const webpack = require('webpack');
|
|
const devConfig = require('./webpack.config.dev');
|
|
|
|
// Disable source maps.
|
|
devConfig.devtool = null;
|
|
|
|
devConfig.plugins = devConfig.plugins.concat([
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
'NODE_ENV': `"${'production'}"`,
|
|
'VERSION': `"${require('./package.json').version}"`
|
|
}
|
|
}),
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
compress: {
|
|
warnings: false
|
|
}
|
|
}),
|
|
new webpack.optimize.OccurrenceOrderPlugin(),
|
|
new webpack.optimize.DedupePlugin()
|
|
]);
|
|
|
|
module.exports = devConfig;
|