Skip to content

Instantly share code, notes, and snippets.

@movii
Last active June 19, 2018 02:21
Show Gist options
  • Save movii/59145305219b5bc62b17d1abab6e27b8 to your computer and use it in GitHub Desktop.
Save movii/59145305219b5bc62b17d1abab6e27b8 to your computer and use it in GitHub Desktop.
配合 Vue.js 配置 Webpack。原文:https://moxo.io/blog/2016/09/10/npm-vue-webpack/
module.exports = {
- mode: 'development',
+ mode: process.env.NODE_ENV === 'production'
? 'production'
: 'development',
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment