Webpack public js and css are packaged separately, and js and css referenced by several pages are packaged together with import

1.Jquery and common,envPath Js files are all loaded through HtmlWebpackPlugin, as shown in figure
clipboard.png

Jquery
JS

clipboard.png

commonenvPath

clipboard.png

2.import common.scssJquery

clipboard.png

Mar.11,2021

can the last output bundle of webpack become a separate file? there are two cases (css is the same):

  1. independent entry (multiple entries, including js for asynchronous components can also be regarded as a separate entry)
  2. js extracted using plug-in (CommonsChunkPlugin) (such as common vendor, manifest)

otherwise, it will be packaged together. You are sure that which condition is not met has nothing to do with HtmlWebpackPlugin. You might as well post entry configuration and extract configuration .
like jquery can be introduced independently using < script > tags


clipboard.png

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-7af2dd-291f4.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-7af2dd-291f4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?