Skip to content

Commit

Permalink
fix: revert subfolder for js assets
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Mar 3, 2024
1 parent 63966c8 commit 424a06c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/esbuild/esbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewAssetCompileOptionsStorefront(name, path string) AssetCompileOptions {
EntrypointDir: "Resources/app/storefront/src",
OutputDir: "Resources/app/storefront/dist/storefront",
ProductionMode: true,
OutputJSFile: filepath.Join("js", kebabCased, kebabCased+".js"),
OutputJSFile: filepath.Join("js", kebabCased+".js"),
OutputCSSFile: filepath.Join("css", kebabCased+".css"),
// We never emit CSS for the storefront, they are always lying in a separate SCSS file entrypoint
DisableSass: true,
Expand Down
2 changes: 1 addition & 1 deletion internal/esbuild/esbuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestESBuildStorefront(t *testing.T) {

assert.NoError(t, err)

compiledFilePath := path.Join(dir, "Resources", "app", "storefront", "dist", "storefront", "js", "bla", "bla.js")
compiledFilePath := path.Join(dir, "Resources", "app", "storefront", "dist", "storefront", "js", "bla.js")
_, err = os.Stat(compiledFilePath)
assert.NoError(t, err)
}

0 comments on commit 424a06c

Please sign in to comment.