Skip to content

Commit

Permalink
Hotifx: image paths (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eimantas committed Jul 29, 2019
1 parent 163e398 commit e9e1e49
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 31 deletions.
2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"policyName": "WebpackBuilderPolicy",
"mainProject": "@reactway/webpack-builder",
"nextBump": "prerelease",
"version": "1.0.0-alpha.20"
"version": "1.0.0-alpha.21"
}
]
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-clean/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-clean",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -31,7 +31,7 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"clean-webpack-plugin": "^2.0.1",
"webpack": "^4.31.0",
"tslib": "^1.9.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-html",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -31,7 +31,7 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"tslib": "^1.9.3",
"html-webpack-plugin": "^3.2.0",
"html-webpack-template": "^6.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-builder-plugin-image-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/image-loader",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack to load images, optimize and resize.",
"keywords": [
"webpack",
Expand Down

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import webpack from "webpack";
import webpackCompiler from "./compiler/compiler";
import { ReactwayImageLoaderPlugin } from "../plugin";

// tslint:disable-next-line:no-any
(global as any).__webpack_public_path__ = "";

describe("ReactwayImagePlugin displaying stats", () => {
it("Adding plugin to config", async () => {
const loader: webpack.RuleSetRule[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ImageLoader {
content: contentBuffer
});

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

// If 'optimizeImagesInDev' value set to 'true' then every build check if files(images) exists in output dir is skipped.
if (!options.optimizeImagesInDev) {
Expand Down
6 changes: 3 additions & 3 deletions packages/webpack-builder-plugin-images/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-images",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -30,8 +30,8 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/image-loader": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"@reactway/image-loader": "1.0.0-alpha.21",
"tslib": "^1.9.3",
"url-loader": "^1.1.2",
"upath": "^1.1.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-styles",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -30,7 +30,7 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"mini-css-extract-plugin": "^0.6.0",
"fs-extra": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-typescript",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.4.3",
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"babel-loader": "^8.0.5",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"fork-ts-checker-webpack-plugin": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-web-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-web-dev",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -31,7 +31,7 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"tslib": "^1.9.3",
"upath": "^1.1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-builder-plugin-write-file/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder-plugin-write-file",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A plugin made for webpack-builder.",
"keywords": [
"webpack",
Expand Down Expand Up @@ -31,7 +31,7 @@
"**/*.md"
],
"dependencies": {
"@reactway/webpack-builder": "1.0.0-alpha.20",
"@reactway/webpack-builder": "1.0.0-alpha.21",
"tslib": "^1.9.3",
"write-file-webpack-plugin": "^4.5.0",
"upath": "^1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reactway/webpack-builder",
"version": "1.0.0-alpha.20",
"version": "1.0.0-alpha.21",
"description": "A tool to create webpack config easier using plugins.",
"keywords": [
"webpack",
Expand Down

0 comments on commit e9e1e49

Please sign in to comment.