@rspack/plugin-postcss
Advanced tools
Comparing version 0.0.3 to 0.0.4
# rspack-plugin-postcss | ||
## 0.0.4 | ||
### Patch Changes | ||
- d466288: add process_assets hook | ||
- Updated dependencies [d466288] | ||
- @rspack/binding@0.0.5 | ||
## 0.0.3 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@rspack/plugin-postcss", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@rspack/binding": "0.0.4", | ||
"@rspack/binding": "0.0.5", | ||
"postcss-modules": "^5.0.0", | ||
@@ -11,0 +11,0 @@ "postcss-pxtorem": "^6.0.0" |
@@ -7,3 +7,3 @@ const { Processor } = require("postcss"); | ||
// TODO: customize options, until js binding support this functionality | ||
console.log(loaderContext.getOptions()); | ||
// console.log(loaderContext.getOptions()); | ||
let options = loaderContext.getOptions() ?? {}; | ||
@@ -13,3 +13,8 @@ let enableModules = options.modules; | ||
let meta = ""; | ||
let plugins = [pxtorem]; | ||
let plugins = [ | ||
pxtorem({ | ||
rootValue: 50, | ||
propList: ["*"] | ||
}) | ||
]; | ||
if (enableModules) { | ||
@@ -16,0 +21,0 @@ plugins.push( |
1752
37
+ Added@rspack/binding@0.0.5(transitive)
- Removed@rspack/binding@0.0.4(transitive)
Updated@rspack/binding@0.0.5