You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object.keys(entryMap).forEach((pageName) => {
// ensure entryMap from pages has been add to webpack entry
// webpack-dev-server may modify compilerOptions.entry, e.g add webpack-dev-server/client to every entry
compilerOptions.entry = Object.assign(
this.webpackEntry,
compilerOptions.entry,
);
// add an WebPlugin for every page to output an html
const {
templatePath,
templateCompiler,
htmlOutputFilename,
entryPath,
} = entryMap[pageName];
new WebPlugin({
...otherOptions,
template: templatePath,
templateCompiler,
pageName,
entryPath,
filename: `${htmlOutputFilename}.html`,
requires: requires.concat(pageName),
}).apply(compiler);
});
The text was updated successfully, but these errors were encountered:
chdhyangbo
changed the title
这一段在vue.config.js配置后没有执行,导致template.html没有编译
this code is not run when i configured in vue.config.it can cause template.html without complilier
Oct 9, 2020
chdhyangbo
changed the title
this code is not run when i configured in vue.config.it can cause template.html without complilier
this code is not run when i configured in vue.config.js,it can cause template.html without complilier
Oct 9, 2020
chdhyangbo
changed the title
this code is not run when i configured in vue.config.js,it can cause template.html without complilier
this code is not run when i configured in vue.config.js,it can cause template.html without complier
Oct 9, 2020
// call by webpack
apply(compiler) {
global._isProduction = util.isProduction(compiler);
global._isExtractStyle = util.isExtractStyle(compiler);
const { options: compilerOptions } = compiler;
const { entryMap } = this;
const { outputPagemap, outputPagemapFilename, requires = [], ...otherOptions } = this.options;
The text was updated successfully, but these errors were encountered: