happycss
v0.3.7
Published
happycss for you webpack project
Downloads
85
Readme
happycss
a webpack loader for css
Install
webpack config
const happycss = require('happycss')
module.exports = {
// ...
plugins: [
new happycss({
// cssPath: '/src/assets/css/happycss.css'
// importPath: '/src/main.js'
}),
]
}
vue-cli 3.0 vue.config.js
const happycss = require('happycss')
module.exports = {
// ...
configureWebpack: {
plugins: [
new happycss({
// cssPath: '/src/assets/css/happycss.css'
// importPath: '/src/main.js'
})
]
}
}
The specific rules are as follows
具体规则如下
options
参数
注意事项
Change Log
0.3.1
Support color
增加对color的支持
0.3.0
Support react
增加对react的支持 (外部文件新增样式,需要刷新页面)
0.2.0
compatible webpack 3.0\4.0
兼容webpack 3.0和4.0
0.1.1
Increase support for crossing'-','_'in class class names
增加对class类名中 横行'-' 、 '_'的支持
0.1.0
Support Webpack 4.0
只支持webpack 4.0
0.0.6
auto create happycss.css file
自动生成 happycss.css 文件
License
MIT