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

Bolt v2.6.0-beta.2 Release / Build Tools Hotfix #1364

Merged
merged 1 commit into from Aug 27, 2019
Merged
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
7 changes: 6 additions & 1 deletion packages/build-tools/cli.js
Expand Up @@ -122,8 +122,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 : 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 @@ -233,6 +233,7 @@ async function createWebpackConfig(buildConfig) {
functions: sassExportData,
precision: 3,
data: globalSassData.join('\n'),
outputStyle: 'nested',
},
},
];
Expand Down