How to extract public css files from webpack+vue-loader

weback and vue, develop multiple pc pages using vue-loader

refer to Blue Fox"s multi-page framework https://github.com/bluefox168.

the attempt can be built, and there is no problem with the public js.
but the public css is not separated, and all css are corresponding css files.
the process is as follows:

  1. an attempt to add to the entry file js of each page failed with no change.

  2. vuescript

  3. vuestylecsscss...

do you seniors have any way to solve or deal with it?


requires the help of webpack plug-ins extract-text-webpack-plugin .

you can study it.

give you a reference to the webpack configuration file

  

generally replaced it in webpack 4

Menu