Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit d77deed

Browse files
EimantasMartynas Žilinskas
authored andcommitted
Hotifix: no default postcss (#16)
* Fixed missing default value. * Applying package updates. * Updated versions.
1 parent 1e02a64 commit d77deed

13 files changed

Lines changed: 98 additions & 34 deletions

File tree

common/config/rush/version-policies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"policyName": "WebpackBuilderPolicy",
1515
"mainProject": "@reactway/webpack-builder",
1616
"nextBump": "prerelease",
17-
"version": "1.0.0-alpha.15"
17+
"version": "1.0.0-alpha.16"
1818
}
1919
]

packages/webpack-builder-plugin-clean/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/webpack-builder-plugin-clean",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack-builder.",
55
"keywords": [
66
"webpack",
@@ -31,7 +31,7 @@
3131
"**/*.md"
3232
],
3333
"dependencies": {
34-
"@reactway/webpack-builder": "1.0.0-alpha.15",
34+
"@reactway/webpack-builder": "1.0.0-alpha.16",
3535
"clean-webpack-plugin": "^2.0.1",
3636
"webpack": "^4.31.0",
3737
"tslib": "^1.9.3",

packages/webpack-builder-plugin-html/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/webpack-builder-plugin-html",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack-builder.",
55
"keywords": [
66
"webpack",
@@ -31,7 +31,7 @@
3131
"**/*.md"
3232
],
3333
"dependencies": {
34-
"@reactway/webpack-builder": "1.0.0-alpha.15",
34+
"@reactway/webpack-builder": "1.0.0-alpha.16",
3535
"tslib": "^1.9.3",
3636
"html-webpack-plugin": "^3.2.0",
3737
"html-webpack-template": "^6.2.0",

packages/webpack-builder-plugin-image-loader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/image-loader",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack to load images, optimize and resize.",
55
"keywords": [
66
"webpack",

packages/webpack-builder-plugin-images/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/webpack-builder-plugin-images",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack-builder.",
55
"keywords": [
66
"webpack",
@@ -30,8 +30,8 @@
3030
"**/*.md"
3131
],
3232
"dependencies": {
33-
"@reactway/webpack-builder": "1.0.0-alpha.15",
34-
"@reactway/image-loader": "^1.0.0-alpha.15",
33+
"@reactway/webpack-builder": "1.0.0-alpha.16",
34+
"@reactway/image-loader": "^1.0.0-alpha.16",
3535
"tslib": "^1.9.3",
3636
"url-loader": "^1.1.2",
3737
"upath": "^1.1.2"

packages/webpack-builder-plugin-styles/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/webpack-builder-plugin-styles",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack-builder.",
55
"keywords": [
66
"webpack",
@@ -30,7 +30,7 @@
3030
"**/*.md"
3131
],
3232
"dependencies": {
33-
"@reactway/webpack-builder": "1.0.0-alpha.15",
33+
"@reactway/webpack-builder": "1.0.0-alpha.16",
3434
"optimize-css-assets-webpack-plugin": "^5.0.1",
3535
"mini-css-extract-plugin": "^0.6.0",
3636
"fs-extra": "^8.0.1",

packages/webpack-builder-plugin-styles/src/__tests__/__snapshots__/plugin.test.ts.snap

Lines changed: 76 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/webpack-builder-plugin-styles/src/__tests__/plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ describe("development", () => {
221221
.use(StylesPlugin, {
222222
postcssLoaderOptions: {
223223
options: {
224+
sourceMap: "inline",
224225
plugins: [require("autoprefixer")()]
225226
}
226227
}

packages/webpack-builder-plugin-styles/src/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ export const StylesPlugin: Plugin<StylesPluginOptions> = (config, projectDirecto
128128
let postCssPlugins: PostCssPluginsFn | unknown[] | undefined = postCssOptions.plugins;
129129
// Default autoprefixer.
130130
const autoprefixerRequire = require("autoprefixer")();
131-
132131
if (postCssPlugins == null) {
133-
postCssPlugins = () => [autoprefixerRequire];
132+
postCssPlugins = [autoprefixerRequire];
134133
} else {
135134
const definedPostCssPlugins = postCssPlugins;
136135
if (Array.isArray(postCssPlugins)) {
@@ -144,7 +143,8 @@ export const StylesPlugin: Plugin<StylesPluginOptions> = (config, projectDirecto
144143
}
145144

146145
postcssLoaderOptions.options = {
147-
...postCssOptions
146+
...postCssOptions,
147+
plugins: postCssPlugins
148148
};
149149

150150
let sassLoaderOptions: LoaderOptions = {};

packages/webpack-builder-plugin-typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reactway/webpack-builder-plugin-typescript",
3-
"version": "1.0.0-alpha.15",
3+
"version": "1.0.0-alpha.16",
44
"description": "A plugin made for webpack-builder.",
55
"keywords": [
66
"webpack",
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"@babel/core": "^7.3.4",
3434
"@babel/preset-env": "^7.4.3",
35-
"@reactway/webpack-builder": "1.0.0-alpha.15",
35+
"@reactway/webpack-builder": "1.0.0-alpha.16",
3636
"babel-loader": "^8.0.5",
3737
"babel-plugin-syntax-dynamic-import": "^6.18.0",
3838
"fork-ts-checker-webpack-plugin": "^1.0.0",

0 commit comments

Comments
 (0)