Skip to content

Commit

Permalink
changing runtimeCompilerBuild log message to show always, mention CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed May 13, 2020
1 parent 1d959fd commit 2271566
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/config-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ class ConfigGenerator {
};

if (this.webpackConfig.useVueLoader && this.webpackConfig.vueOptions.runtimeCompilerBuild) {
if (this.webpackConfig.isProduction()) {
logger.recommendation(`If you do not need to compile Vue templates at runtime, pass ${chalk.green('{ runtimeCompilerBuild: false }')} as the 3rd argument to ${chalk.green('enableVueLoader()')} for a smaller build.`);
}
logger.recommendation('logger.recommendation('To create a smaller (and CSP-compliant) build, see https://symfony.com/doc/current/frontend/encore/vuejs.html#build');');

const vueVersion = getVueVersion(this.webpackConfig);
switch (vueVersion) {
Expand Down

0 comments on commit 2271566

Please sign in to comment.