Skip to content

html-webpack-plugin和extract-text-webpack-plugin配合,提取css,link到页面

Notifications You must be signed in to change notification settings

cag2050/vue_extract_text_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue_extract_text_demo

html-webpack-plugin和extract-text-webpack-plugin配合,提取css,link到页面

官方说明(网址):  
It moves every require("style.css") in entry chunks into a separate CSS file. So your styles are no longer inlined into the JS bundle, but separate in a CSS bundle file (styles.css).

要使用extract-text-webpack-plugin,必须要有 require('[name].css'); 语句。
extract-text-webpack-plugin 提取处理的是,require语句的css。

About

html-webpack-plugin和extract-text-webpack-plugin配合,提取css,link到页面

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages