Replies: 1 comment
-
I'm not sure without a reproduction. But I guess that that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use a custom middleware to intercept json mock files for testing. from version 10-11 the middleware no long intercepts the files as if their path has changed although the "copy" does work and you can pull them via the url: localhost.../static/file.json. Any ideas are appreciated.
-- snippets of config
base: '',
build: {
outDir: path.resolve(__dirname, '../wwwroot/dist/'),
emptyOutDir: true,
assetsDir: 'static',
},
define: {
'process.env': process.env,
},
plugins: [
serverPlugin({}),
!isProd ? viteStaticCopy({
targets: [
{
src:
./mocks/data/*
,dest:
/static
Beta Was this translation helpful? Give feedback.
All reactions