You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
235 B
JavaScript
9 lines
235 B
JavaScript
2 years ago
|
var loaderUtils = require('loader-utils')
|
||
|
var Px2rem = require('px2rem')
|
||
|
|
||
|
module.exports = function (source) {
|
||
|
var options = loaderUtils.getOptions(this)
|
||
|
var px2remIns = new Px2rem(options)
|
||
|
return px2remIns.generateRem(source)
|
||
|
}
|