Skip to content

Commit

Permalink
Merge pull request #1 from HenrikJoreteg/changes
Browse files Browse the repository at this point in the history
Misc changes:
  • Loading branch information
HenrikJoreteg committed Apr 20, 2015
2 parents 0bd30d3 + 08a7dd9 commit 065aed2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ module.exports = function (opts) {
configFile: null,
isDev: true,
package: null,
replace: null
replace: null,
port: 3000
})

spec.package = getPackage(spec.package)
Expand Down Expand Up @@ -59,7 +60,7 @@ module.exports = function (opts) {

// add dev server and hotloading clientside code
config.entry.unshift(
'webpack-dev-server/client?http://0.0.0.0:3000',
'webpack-dev-server/client?http://0.0.0.0:' + spec.port,
'webpack/hot/only-dev-server'
)

Expand Down Expand Up @@ -92,10 +93,16 @@ module.exports = function (opts) {
compress: {
warnings: false
},
output: {
comments: false
},
sourceMap: false
}),
new ExtractTextPlugin(config.output.cssFilename, {
allChunks: true
}),
new webpack.DefinePlugin({
'process.env': {NODE_ENV: JSON.stringify('production')}
})
)

Expand Down

0 comments on commit 065aed2

Please sign in to comment.