There was an error while loading. Please reload this page.
1 parent df36c81 commit 779fcddCopy full SHA for 779fcdd
README.md
@@ -55,20 +55,22 @@ STATICFILES_DIRS = (
55
<br>
56
Assuming your webpack config lives at `./webpack.config.js` and looks like this
57
```javascript
58
+var path = require("path");
59
+var webpack = require('webpack');
60
+var BundleTracker = require('webpack-bundle-tracker');
61
+
62
module.exports = {
63
context: __dirname,
- entry: {
- app: './assets/js/index'
- output: {
- path: require('path').resolve('./assets/bundles/'),
64
- filename: '[name]-[hash].js',
+ entry: './assets/js/index',
65
+ output: {
66
+ path: path.resolve('./assets/bundles/'),
67
+ filename: "[name]-[hash].js"
68
},
69
70
plugins: [
71
new BundleTracker({filename: './webpack-stats.json'})
72
]
73
}
-
74
```
75
76
0 commit comments