Skip to content
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

v2.5.7 Build Tools Hotfix #1361

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions packages/build-tools/cli.js
Expand Up @@ -118,12 +118,13 @@ if (program.configFile) {
// automatically set enableSSR to true in prod mode and false in dev mode, unless manually set.
config.enableSSR = false;

// automatically enable i18n in production builds if undefined
config.i18n =
typeof options.i18n === 'undefined'
? config.prod
? true
: false
: options.i18n;
typeof options.i18n !== 'undefined'
? options.i18n
: config.prod
? true
: false;

// If i18n is disabled, ignore and remove lang config settings
if (config.lang && config.i18n === false) {
Expand Down
1 change: 1 addition & 0 deletions packages/build-tools/create-webpack-config.js
Expand Up @@ -232,6 +232,7 @@ async function createWebpackConfig(buildConfig) {
functions: sassExportData,
precision: 3,
data: globalSassData.join('\n'),
outputStyle: 'nested',
},
},
];
Expand Down