-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update webpack config; HugoServer and Webpack Port to be same (…
…3000) (#1102) * move images to assets * ignore static/static_shared * run webpack in watch mode, not server * remove unused env import * fix: append slash on publicPath * fix: update path for images * remove: remove RedirectionRule for OCW_STATIC_SHARED * remove: unused env imports * add back RedirectionRule for OCW_STATIC_SHARED * fix OCW_STATIC_SHARED usage * fix OCW_STATIC_SHARED usage * try to pass e2e test * try to pass playwright test * try to pass playwright test * try to pass playwright test * remove static_shared transform rule * test playwright test * remove package.json changes * try running playwright on webpack dev * try to fix formatting issues * add new line * add static directory in .prettierignore and run yarn fmt * add newline at end prettierignore --------- Co-authored-by: Chris Chudzicki <[email protected]> Co-authored-by: IbrahimJaved <[email protected]>
- Loading branch information
1 parent
a55f32b
commit 5d793b4
Showing
43 changed files
with
25 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ private/* | |
*~ | ||
*.pem | ||
|
||
base-theme/static | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
**/dist | ||
**/dist | ||
**/static |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1 @@ | ||
{{- $port := getenv "WEBPACK_PORT" -}} | ||
{{- $host := getenv "WEBPACK_HOST" -}} | ||
{{- $webpackBase := print "http://" $host ":" $port -}} | ||
{{- if or site.IsServer (not (eq site.BaseURL "")) -}} | ||
{{- if or site.IsServer (in site.BaseURL ":3000") -}} | ||
{{- if hasPrefix .url "/" -}} | ||
{{- print $webpackBase .url -}} | ||
{{- else -}} | ||
{{- print $webpackBase "/" .url -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- partial "site_root_url.html" .url -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- partial "site_root_url.html" .url -}} | ||
{{- end -}} | ||
{{- partial "site_root_url.html" .url -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters