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

Commit e9e1e49

Browse files
author
Eimantas
authored
Hotifx: image paths (#23)
1 parent 163e398 commit e9e1e49

14 files changed

Lines changed: 27 additions & 31 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.20"
17+
"version": "1.0.0-alpha.21"
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.20",
3+
"version": "1.0.0-alpha.21",
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.20",
34+
"@reactway/webpack-builder": "1.0.0-alpha.21",
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.20",
3+
"version": "1.0.0-alpha.21",
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.20",
34+
"@reactway/webpack-builder": "1.0.0-alpha.21",
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.20",
3+
"version": "1.0.0-alpha.21",
44
"description": "A plugin made for webpack to load images, optimize and resize.",
55
"keywords": [
66
"webpack",

packages/webpack-builder-plugin-image-loader/src/@types/globals.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

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

packages/webpack-builder-plugin-image-loader/src/__tests__/plugin.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import webpack from "webpack";
22
import webpackCompiler from "./compiler/compiler";
33
import { ReactwayImageLoaderPlugin } from "../plugin";
44

5-
// tslint:disable-next-line:no-any
6-
(global as any).__webpack_public_path__ = "";
7-
85
describe("ReactwayImagePlugin displaying stats", () => {
96
it("Adding plugin to config", async () => {
107
const loader: webpack.RuleSetRule[] = [

packages/webpack-builder-plugin-image-loader/src/image-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class ImageLoader {
199199
content: contentBuffer
200200
});
201201

202-
const path = `${__webpack_public_path__} + ${JSON.stringify(url)}`;
202+
const path = `${JSON.stringify(url)}`;
203203

204204
// If 'optimizeImagesInDev' value set to 'true' then every build check if files(images) exists in output dir is skipped.
205205
if (!options.optimizeImagesInDev) {

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.20",
3+
"version": "1.0.0-alpha.21",
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.20",
34-
"@reactway/image-loader": "1.0.0-alpha.20",
33+
"@reactway/webpack-builder": "1.0.0-alpha.21",
34+
"@reactway/image-loader": "1.0.0-alpha.21",
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.20",
3+
"version": "1.0.0-alpha.21",
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.20",
33+
"@reactway/webpack-builder": "1.0.0-alpha.21",
3434
"optimize-css-assets-webpack-plugin": "^5.0.1",
3535
"mini-css-extract-plugin": "^0.6.0",
3636
"fs-extra": "^8.0.1",

0 commit comments

Comments
 (0)