December 2017
Beginner to intermediate
376 pages
7h 53m
English
Before you run the FTP script, be sure to first build your app for production with the npm run prod command. This runs a Webpack build with the NODE_ENV=production environment variable set.
A production build ensures your assets are optimized for a production environment. For example, when Vue.js is bundled in production mode, it will not include warnings and tips, and will disable Vue Devtools. You can see how this is achieved from this snippet of the vue.runtime.common.js module.
node_modules/vue/dist/vue.runtime.common.js:
/** * Show production mode tip message on boot? */ productionTip: process.env.NODE_ENV !== 'production', /** * Whether to enable devtools */ devtools: process.env.NODE_ENV !== 'production',
Webpack will ...
Read now
Unlock full access