custom-affix-css-loader
v1.0.0
Published
a css loader that Allows you to add prefixes and suffixes freely
Downloads
1
Readme
This is a tool for adding CSS affixes,Its runtime depends on the webpack packaging environment。
npm install --save-dev custom-affix-css-loader
loaders:[
{
test: /\.css$/,
loader: 'style-loader!css-loader!custom-affix-css-loader?{"type":"css","pre":"pre","suf":"suf"}'
},
{
test: /\.html$/,
loader: 'html-loader!custom-affix-css-loader?{"type":"html","pre":"pre","suf":"suf"}'
}
]
.container {
background: #FFF;
}
after packing:
.pre-container-suf {
background: #FFF;
}
(html)for example:
<div class="container"></div>
after packing:
<div class="pre-container-suf"></div>