New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support MPA router #93
Conversation
add forked information to reademe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add test case for this change?
|
||
compiler.hooks.thisCompilation.tap(pluginName, compilation => { | ||
try { | ||
generate() | ||
if (Object.prototype.toString.call(this.options) === '[object Object]') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (Object.prototype.toString.call(this.options) === '[object Object]') { | |
if (typeof this.options === 'object') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe
typeof [1, 2, 4] === 'object';
typeof new Date() === 'object';
for the test, |
Sorry for the absence. I believe #149 would be better way to solve the original problem - you only need to pass multiple plugin instances with different output paths. |
get this in /node_moudle/vue-auto-routing
-user.js
-shop.js
-index.js
and the vue-router
the main.js