Skip to content

Commit

Permalink
fixup! test(public assets): make assets plugin wait for prebuild and …
Browse files Browse the repository at this point in the history
…add the assets plugin to the addon template
  • Loading branch information
BlueCutOfficial committed Apr 12, 2024
1 parent 107da9b commit c651a11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/addon-template/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default defineConfig(({ mode }) => {
ignored: ["!**/node_modules/.embroider/rewritten-app/**"],
},
},
publicDir: resolve(process.cwd(), "public"),
// If the "app" is a classic addon dummy app, the public directory is tests/dummy/public,
// any public directory at the root would rather contain the assets provided by the addon,
// which are managed by the assets plugin.
publicDir: resolve(process.cwd(), "tests/dummy/public"),
build: {
outDir: resolve(process.cwd(), "dist"),
rollupOptions: {
Expand Down

0 comments on commit c651a11

Please sign in to comment.