mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
start-up visualizer - extract amcharts chunk to ensure that cache for element-ui will be valid on amcharts update (and vice versa), do not use CDN for element-ui CSS
As now jetbrains infrastructure is used, better if dist will be self-contained (no external CDNs) GitOrigin-RevId: cf034b42e5dcc1c9f4e66f80615e23cdac8e3181
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6fe5c64133
commit
bc87963baa
@@ -5,8 +5,6 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>Start-up Visualizer</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.8.2/lib/theme-chalk/reset.css" integrity="sha384-Ew/hpwZNHDuGh+VhkI5dOZFP+6ILGiYizxTavkY2fHaI7jJ79ucoAdpOYg6ZRjmy" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.8.2/lib/theme-chalk/index.css" integrity="sha384-NzLQYzzuG4tOFL7EyrQTVXBbgxB9Y7qBBq3yV2kn5yG+A61JLrc8An6IY5KtSAl8" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
@@ -6,6 +6,9 @@ import router from "./router"
|
||||
import {store} from "./state/state"
|
||||
import locale from "element-ui/lib/locale/lang/en"
|
||||
|
||||
import "element-ui/lib/theme-chalk/reset.css"
|
||||
import "element-ui/lib/theme-chalk/index.css"
|
||||
|
||||
Vue.use(ElementUI, {locale})
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
@@ -4,4 +4,14 @@ module.exports = {
|
||||
devtool: "source-map",
|
||||
},
|
||||
integrity: true,
|
||||
configureWebpack: config => {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
config.optimization.splitChunks.cacheGroups.amcharts = {
|
||||
name: "amcharts",
|
||||
test: /[\\/]node_modules[\\/]@amcharts[\\/]/,
|
||||
priority: -5,
|
||||
chunks: "initial"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user