Possible to get tree-shaking to work with vue-builder-webpack-plugin

  • Hi, I’ve been using all:true instead of all:‘auto’ for all my apps as all:‘auto’ simply did not work (none of the components was included in my build). I suspect this is due to my use of vue-builder-webpack-plugin to split my code into separate HTML, STYL and JS files (I prefer organising my code that way), which causes the compiler to be unable to detect the components referred to (vue-builder-webpack-plugin basically generates vue files with just a <script>, <template> and <style> tag that respectively point to the actual source file).

    Is it possible to have tree-shaking work with vue-builder-webpack-plugin? I’m finding that using all:true might be impacting my performance.

Log in to reply