1.0.0 • Published 7 years ago

custom-affix-css-loader v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago
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"}'  
            }  
        ]  
after packing:
    .pre-container-suf {
        background: #FFF;
    }
(html)for example:
    <div class="container"></div>
after packing:
    <div class="pre-container-suf"></div>