Skip to content

Commit 9e51758

Browse files
henry40408owais
authored andcommitted
Update README.md (django-webpack#75)
* `webpack_bundles` instead of `bundles` actually used in Django `settings.py`. * add missing `require` statement in `webpack` configuration file.
1 parent 926f582 commit 9e51758

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = {
6363
context: __dirname,
6464
entry: './assets/js/index',
6565
output: {
66-
path: path.resolve('./assets/bundles/'),
66+
path: path.resolve('./assets/webpack_bundles/'),
6767
filename: "[name]-[hash].js"
6868
},
6969

@@ -80,7 +80,7 @@ module.exports = {
8080
WEBPACK_LOADER = {
8181
'DEFAULT': {
8282
'CACHE': not DEBUG,
83-
'BUNDLE_DIR_NAME': 'bundles/', # must end with slash
83+
'BUNDLE_DIR_NAME': 'webpack_bundles/', # must end with slash
8484
'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'),
8585
'POLL_INTERVAL': 0.1,
8686
'TIMEOUT': None,
@@ -292,7 +292,8 @@ In the below example, `logo.png` can be any static asset shipped with any npm or
292292
293293
`./webpack_production.config.js`
294294
```javascript
295-
config = require('./webpack.config.js');
295+
var config = require('./webpack.config.js');
296+
var BundleTracker = require('webpack-bundle-tracker');
296297
297298
config.output.path = require('path').resolve('./assets/dist');
298299

0 commit comments

Comments
 (0)