Skip to content

Commit ce5769d

Browse files
committed
Merge branch 'carlcarl-fix_readme_example'
2 parents df36c81 + 779fcdd commit ce5769d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,22 @@ STATICFILES_DIRS = (
5555
<br>
5656
Assuming your webpack config lives at `./webpack.config.js` and looks like this
5757
```javascript
58+
var path = require("path");
59+
var webpack = require('webpack');
60+
var BundleTracker = require('webpack-bundle-tracker');
61+
5862
module.exports = {
5963
context: __dirname,
60-
entry: {
61-
app: './assets/js/index'
62-
output: {
63-
path: require('path').resolve('./assets/bundles/'),
64-
filename: '[name]-[hash].js',
64+
entry: './assets/js/index',
65+
output: {
66+
path: path.resolve('./assets/bundles/'),
67+
filename: "[name]-[hash].js"
6568
},
6669

6770
plugins: [
6871
new BundleTracker({filename: './webpack-stats.json'})
6972
]
7073
}
71-
7274
```
7375

7476

0 commit comments

Comments
 (0)