the configuration of config, in the main.js of each noodle does not take effect
the configuration of config, in the main.js of each noodle does not take effect
initialize the project using the mpvue/mpvue-quickstart template, and introduce the required component path in the src/pages.js file accordingly, like this:
module.exports = [
{
path: 'pages/index', // vue src
config: {
usingComponents: {
'i-button': '../../iview/button/index'
}
}
}
]
then use it as described in the official document
Previous: Can't mpvue add click events directly to the build?
Next: The question about unicode coding comes from Ruan Yifeng's article.
error when using iview framework toast components in mpvue Module parse failed: Unexpected token (17:8) You may need an appropriate loader to handle this file type. page introduces const {$Toast} = require ( ".. static iview toast index "); h...
introduce iview files into mpvue projects Wechat development tools report errors in code format when compiling or uploading do not report errors only when es6 to es5 is checked ...