Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Little refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 2, 2017
1 parent c519bc3 commit c18394d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const path = require('path')

const pkg = require('./package.json')
const config = require('./config.json')
const {HotModuleReplacementPlugin, NoEmitOnErrorsPlugin} = webpack
const {
HotModuleReplacementPlugin,
NamedModulesPlugin
} = webpack

module.exports = {
performance: {
Expand All @@ -30,7 +33,10 @@ module.exports = {
modules: ['node_modules']
},
plugins: [
new HotModuleReplacementPlugin(),
new NamedModulesPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development'),
'APP_VERSION': JSON.stringify(pkg.version)
}),
new HtmlWebpackPlugin(Object.assign({}, config, {
Expand All @@ -39,8 +45,6 @@ module.exports = {
inject: false
})),
new HtmlWebpackHarddiskPlugin(),
new HotModuleReplacementPlugin(),
new NoEmitOnErrorsPlugin(),
new BrowserSyncPlugin(
// BrowserSync options
{
Expand Down

0 comments on commit c18394d

Please sign in to comment.