-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: non-relative base public paths in CSS files (#8682)
- Loading branch information
Showing
5 changed files
with
51 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @type {import('vite').UserConfig} | ||
*/ | ||
|
||
const baseConfig = require('./vite.config.js') | ||
module.exports = { | ||
...baseConfig, | ||
base: './', // relative base to make dist portable | ||
build: { | ||
...baseConfig.build, | ||
outDir: 'dist/relative-base', | ||
watch: false, | ||
minify: false, | ||
assetsInlineLimit: 0, | ||
rollupOptions: { | ||
output: { | ||
entryFileNames: 'entries/[name].js', | ||
chunkFileNames: 'chunks/[name].[hash].js', | ||
assetFileNames: 'other-assets/[name].[hash][extname]' | ||
} | ||
} | ||
}, | ||
testConfig: { | ||
baseRoute: '/relative-base/' | ||
} | ||
} |
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