Skip to content

Commit

Permalink
docs: fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kotarella1110 committed May 16, 2019
1 parent d353f0c commit c581ad4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ $ cp www/js/index.js src/index.js
const path = require('path');

module.exports = {
mode: 'development'
mode: 'development',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'www'),
filename: 'index.bundle.js'
filename: 'index.bundle.js',
},
devtool: 'inline-source-map',
};
Expand Down Expand Up @@ -107,15 +107,15 @@ If you want to customize `webpack` options, modify `webpack.config.js` file as f
...
module.exports = {
...
mode: 'production'
mode: 'production',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'www'),
filename: 'bundle.js'
filename: 'bundle.js',
},
plugins: [
new HtmlWebpackPlugin()
]
new HtmlWebpackPlugin(),
],
...
}
```
Expand Down

0 comments on commit c581ad4

Please sign in to comment.