Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webpack-blocks/postcss

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webpack-blocks/postcss - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

5

CHANGELOG.md
# @webpack-blocks/postcss - Changelog
## 0.2.0
- Fix loader order issue
- Upgraded to postcss-loader v1.2.0 which supports reading the `postcss.config.js` file
## 0.1.1

@@ -4,0 +9,0 @@

13

index.js

@@ -10,5 +10,5 @@ /**

/**
* @param {PostCSSPlugin[]} plugins
* @param {PostCSSPlugin[]} [plugins] Will read `postcss.config.js` file if not supplied.
* @param {object} [options]
* @param {RegExp, Function, string} [options.exclude] Directories to exclude.
* @param {RegExp, Function, string} [options.exclude] Directories to exclude.
* @return {Function}

@@ -20,3 +20,3 @@ */

return (fileTypes) => ({
return (fileTypes) => Object.assign({
module: {

@@ -27,8 +27,9 @@ loaders: [

exclude: Array.isArray(exclude) ? exclude : [ exclude ],
loaders: [ 'postcss-loader' ]
loaders: [ 'style-loader', 'css-loader', 'postcss-loader' ]
}
]
},
}
}, plugins ? {
postcss: plugins
})
} : {})
}
{
"name": "@webpack-blocks/postcss",
"version": "0.1.1",
"version": "0.2.0",
"description": "Webpack block for PostCSS.",

@@ -18,3 +18,3 @@ "main": "lib/index",

"dependencies": {
"postcss-loader": "^0.13.0"
"postcss-loader": "^1.2.0"
},

@@ -21,0 +21,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc