This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 255
Upgrade guide from vbuild 5.2.0 to 6.x #108
Comments
const path = require('path')
module.exports = (options, req) => {
const webpack = req('webpack')
return {
html: {
title: 'test-proj',
template: './src/index.html',
},
webpack: {
// this is the `resolve: true` in vbuild 6
resolve: {modules: [path.resolve('src')]},
plugins: [
new webpack.ProvidePlugin({
jQuery: "jquery",
$: "jquery",
"window.jQuery": "jquery",
"window.$": "jquery"
})
]
},
vendor: ['jquery', 'vue', 'vue-router', 'vuex', 'vuex-router-sync', 'vee-validate']
}
} |
And how to set different config for production and development environment ? |
You can manually set this by using |
something like: const common = {}
const prodConfig = {}
const devConfig = {}
return Object.assign({}, common, options.dev ? devConfig : prodConfig) |
@throrin19 this feature is back in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Need upgrade guide to upgrade existing project from vbuild 5.2.0 to 6.x. Tried just updating vbuild in package.json to ^6.1.1 but error regarding missing index.js. Looked at the vue.config.js of 6.x and noticed that it is quite different to that of 5.2.0.
This is my 5.2.0 vue.config.js:
The text was updated successfully, but these errors were encountered: