$ gnpm install px2rem-loader
npm install px2rem-loader
module.exports = {
// ...
module: {
rules: [{
test: /\.css$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'px2rem-loader',
// options here
options: {
remUni: 75,
remPrecision: 8
}
}]
}]
}
}
Please see px2rem for more information about query parameters of px2rem.
Copyright 2013 - present © cnpmjs.org | Home |