summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-14 17:51:20 +0800
committerGitHub <noreply@github.com>2023-03-14 17:51:20 +0800
commitac8d71ff07a3354a27d6a5daab45d1e79e242269 (patch)
treebcf34685ce59b0ad89903ac769c4080dc1073349 /webpack.config.js
parentd56bb7420184c0c2f451f4bcaa96c9b3b00c393d (diff)
downloadgitea-ac8d71ff07a3354a27d6a5daab45d1e79e242269.tar.gz
gitea-ac8d71ff07a3354a27d6a5daab45d1e79e242269.zip
Refactor branch/tag selector to Vue SFC (#23421)
Follow #23394 There were many bad smells in old code. This PR only moves the code into Vue SFC, doesn't touch the unrelated logic. update: after https://github.com/go-gitea/gitea/pull/23421/commits/5f23218c851e12132f538a404c946bbf6ff38e62 , there should be no usage of the vue-rumtime-compiler anymore (hopefully), so I think this PR could close #19851 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 245791e7ea..46bdd6acfa 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -196,6 +196,10 @@ export default {
],
},
plugins: [
+ new webpack.DefinePlugin({
+ __VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
+ __VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
+ }),
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: 'css/[name].css',