@soulsandz/px2remplus-loader
v1.0.1
Published
css post loader for px2remplus
Downloads
1
Readme
px2remplus-loader
same as px2rem-loader
Install
npm i @soulsandz/px2remplus-loader -D
webpack config
module.exports = {
// ...
module: {
rules: [{
test: /\.css$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'px2rem-loader',
// options here
options: {
remUnit: 75,
ignoreSelector: 'cube' // the selector will be ignore if it contains the string
}
}]
}]
}
}
Please see px2rem for more information about query parameters of px2rem.