Skip to content

Commit

Permalink
always use write-file-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Oct 16, 2016
1 parent 3032ade commit 3bc8fde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/build/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 21,14 @@ export default async function createCompiler(dir, { hotReload = false } = {}) {

const nodeModulesDir = resolve(__dirname, '..', '..', '..', 'node_modules')

const plugins = hotReload ? [
new webpack.HotModuleReplacementPlugin(),
new WriteFilePlugin({ log: false })
] : [
new webpack.optimize.UglifyJsPlugin({
const plugins = [
hotReload
? new webpack.HotModuleReplacementPlugin()
: new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
sourceMap: false
})
}),
new WriteFilePlugin({ log: false })
]

const babelRuntimePath = require.resolve('babel-runtime/package')
Expand Down

0 comments on commit 3bc8fde

Please sign in to comment.