Skip to content

Commit 2271566

Browse files
authored
changing runtimeCompilerBuild log message to show always, mention CSP
1 parent 1d959fd commit 2271566

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/config-generator.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class ConfigGenerator {
103103
};
104104

105105
if (this.webpackConfig.useVueLoader && this.webpackConfig.vueOptions.runtimeCompilerBuild) {
106-
if (this.webpackConfig.isProduction()) {
107-
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.`);
108-
}
106+
logger.recommendation('logger.recommendation('To create a smaller (and CSP-compliant) build, see https://symfony.com/doc/current/frontend/encore/vuejs.html#build');');
109107

110108
const vueVersion = getVueVersion(this.webpackConfig);
111109
switch (vueVersion) {

0 commit comments

Comments
 (0)