diff options
author | silverwind <me@silverwind.io> | 2020-02-23 22:34:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 21:34:28 +0000 |
commit | 062f35109df236a06a00d403d006b90760f9cfac (patch) | |
tree | 908b1dc1fe14a55a7c72bcf6a49ac586fc677602 /webpack.config.js | |
parent | 09dbd85a3a9043de9f8ea06a0a7ee7fd45711344 (diff) | |
download | gitea-062f35109df236a06a00d403d006b90760f9cfac.tar.gz gitea-062f35109df236a06a00d403d006b90760f9cfac.zip |
move vue and vue-calendar-heatmap to webpack (#10188)
- unvendor vue and vue-calendar-heatmap
- remove unused moment.js leftover from previous heatmap version
- ensure webpack loads the full version of vue
- fix vue devmode warning related to 'searchLimit' type
I wanted to name the chunk heatmap.js but adblockers don't like that
filename [1].
[1] https://github.com/easylist/easylist/blob/3899d5dff33216c0bc64f09ff15d376f346d3e33/easyprivacy/easyprivacy_general.txt#L2095
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index 4d2db5cf18..eac49f5cd6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -204,6 +204,9 @@ module.exports = { }, resolve: { symlinks: false, + alias: { + vue$: 'vue/dist/vue.esm.js', // needed because vue's default export is the runtime only + }, }, watchOptions: { ignored: [ |