mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
include sourcemap in vite build
This commit is contained in:
parent
c4b4300845
commit
c20e30e387
3 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ const config: UserConfig = {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['source-map-support'],
|
external: ['source-map-support'],
|
||||||
},
|
},
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
'import.meta.env.IS_LINUX': JSON.stringify(currentOSEnv === 'linux'),
|
'import.meta.env.IS_LINUX': JSON.stringify(currentOSEnv === 'linux'),
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ export default defineConfig({
|
||||||
entryFileNames: '[name].js',
|
entryFileNames: '[name].js',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default defineConfig({
|
||||||
assetFileNames: 'assets/[name].[ext]',
|
assetFileNames: 'assets/[name].[ext]',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
modules: {
|
modules: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue