build-plugin-ignore-style
v0.1.2
Published
plugin for ignore style
Downloads
651
Readme
build-plugin-ignore-style
ignore style of component with modular imported by babel-plugin-import
Example
{
"plugins": ["build-plugin-ignore-style", {
"libraryName": "@alifd/next"
}]
}
style imported below will not been compiled
import '@alifd/next/lib/button/style';
import '@alifd/next/lib/button/style.js';
import '@alifd/next/lib/button/style/index.js';
import '@alifd/next/es/button/style';
import '@alifd/next/es/button/style.js';
import '@alifd/next/es/button/style/index.js';
config multi library
{
"plugins": ["build-plugin-ignore-style", [
{
"libraryName": "@alifd/next",
"style": "style2"
},
{
"libraryName": "antd"
}
]]
}
config custom style regexp
{
"plugins": ["build-plugin-ignore-style", [
{
"rule": "@alifd/next/.*\\.scss"
},
]]
}