@webpack-blocks/postcss
Advanced tools
Comparing version 0.1.1 to 0.2.0
# @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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2403
29
+ Addedargparse@1.0.10(transitive)
+ Addedbig.js@5.2.2(transitive)
+ Addedcosmiconfig@2.2.2(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-directory@0.3.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpostcss-load-config@1.2.0(transitive)
+ Addedpostcss-load-options@1.2.0(transitive)
+ Addedpostcss-load-plugins@2.3.0(transitive)
+ Addedpostcss-loader@1.3.3(transitive)
+ Addedrequire-from-string@1.2.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)
- Removedbig.js@3.2.0(transitive)
- Removedemojis-list@2.1.0(transitive)
- Removedjson5@0.5.1(transitive)
- Removedloader-utils@0.2.17(transitive)
- Removedpostcss-loader@0.13.0(transitive)
Updatedpostcss-loader@^1.2.0