【文件属性】:
文件名称:add-css-to-head-plugin:Webpack插件,将纯净CSS添加到html文件的头部
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-03 18:22:58
JavaScript
将CSS添加到Head插件
Webpack插件,可将纯净CSS添加到html文件的头部。
安装
$ npm install --save-dev add-css-to-head-plugin
用法
webpack.config.js
var AddCSSToHeadPlugin = require ( 'add-css-to-head-plugin' ) ;
module . exports = {
...
plugins : [ new AddCSSToHeadPlugin ( ) ]
} ;
【文件预览】:
add-css-to-head-plugin-master
----.gitignore(28B)
----package.json(434B)
----index.js(2KB)
----README.md(377B)
----example()
--------webpack.config.js(510B)
--------css()
--------static.js(277B)
--------pages()