rpx2rem-loader
v1.0.0
Published
webpack loader for rpx2rem
Downloads
1
Readme
rpx2rem-loader
Install
npm install rpx2rem-loader
webpack config
module.exports = {
// ...
module: {
rules: [{
test: /\.css$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'rpx2rem-loader',
// options here
options: {
remUnit: 100,
remTag: 'rem',
remPrecision: 6,
}
}]
}]
}
}
thanks
Please see rpx2rem for more information about query parameters of rpx2rem.