Browse Source

No need to log webpack stats

vuejs
Alexandre Iooss 6 years ago
parent
commit
dfddaa1d2b
No known key found for this signature in database GPG Key ID: 6C79278F3FCDCC02
  1. 3
      package.json
  2. 10
      vue.config.js

3
package.json

@ -20,8 +20,7 @@
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.26.3",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11",
"webpack-bundle-tracker": "^1.0.0-alpha.1"
"vue-template-compiler": "^2.6.11"
},
"babel": {
"presets": [

10
vue.config.js

@ -7,17 +7,7 @@
* the HelloWorld component.
*/
const BundleTracker = require("webpack-bundle-tracker");
module.exports = {
// Output to Django statics
outputDir: './static/bundles/',
// Customize Webpack
chainWebpack: config => {
// Create file for django-webpack-loader
config
.plugin('BundleTracker')
.use(BundleTracker, [{ filename: './webpack-stats.json' }])
}
};
Loading…
Cancel
Save