We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df36c81 + 779fcdd commit ce5769dCopy full SHA for ce5769d
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