Skip to content

Commit

Permalink
chore: change output dir to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian committed Jan 28, 2018
1 parent bedcb16 commit 9fd962b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
logs
*.log
dist

# Runtime data
pids
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
devtool: process.env.WEBPACK_DEVTOOL || 'eval-source-map',
output: {
publicPath: '/',
path: path.join(__dirname, 'public'),
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
resolve: {
Expand All @@ -33,7 +33,7 @@ module.exports = {
loaders
},
devServer: {
contentBase: "./public",
contentBase: "./dist",
// do not print bundle build stats
noInfo: true,
// enable HMR
Expand Down
2 changes: 1 addition & 1 deletion webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
],
output: {
publicPath: '/',
path: path.join(__dirname, 'public'),
path: path.join(__dirname, 'dist'),
filename: '[name].[chunkhash].js',
chunkFilename: '[name].[chunkhash].js'
},
Expand Down

0 comments on commit 9fd962b

Please sign in to comment.