the project project is as follows, zhoulujun webpack4-vue2-project-template and then find out, mounted () { this.$ref.demo.clientWidth; gets the parent node width this.$ref.demo.clientHeight; value is 0 this.$nextTick (() = > { this.$ref.demo...
< H2 > first of all, it is tested that there is no problem with extracting the common module of css. The configuration is as follows: < H2 > optimization: { splitChunks: { cacheGroups: { 2Css Js ...
problem description add a processor to the scss sass file in the webpack configuration file and introduce the global sass variable, but use the variable in the vue template to indicate that the variable does not exist the environmental background of...
< H1 > problem description < H1 > recently fiddling with webpack4, configuration reference vue-cli, but when actually developing, scss-loader or stylus-loader is used for convenience. without extract-text-webpack-plugin, every time modifies the st...