Skip to content

Commit

Permalink
Updated webpack configs
Browse files Browse the repository at this point in the history
  • Loading branch information
igorprado committed Oct 15, 2015
1 parent a081323 commit d0c3675
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var compiler = webpack(config);

app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
publicPath: '/' + config.output.publicPath
}));

app.use(require('webpack-hot-middleware')(compiler));
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
output: {
path: path.join(__dirname, 'example/build'),
filename: 'app.js',
publicPath: '/build/'
publicPath: 'build/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
output: {
path: path.join(__dirname, 'example/build'),
filename: 'app.js',
publicPath: '/build/'
publicPath: '../build/'
},
plugins: [
new ExtractTextPlugin('app.css', { allChunks: true }),
Expand Down Expand Up @@ -49,7 +49,7 @@ module.exports = {
if_return: true,
join_vars: true,
cascade: true,
drop_console: true
drop_console: false
},
output: {
comments: false
Expand Down

0 comments on commit d0c3675

Please sign in to comment.