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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39006-2c150.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39006-2c150.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?