mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
parent
99e1b5ac5c
commit
453ff5ceb3
@ -95,7 +95,7 @@ export class NgCliWebpackConfig<T extends BuildOptions = BuildOptions> {
|
||||
sourcemaps: true,
|
||||
extractCss: false,
|
||||
namedChunks: true,
|
||||
aot: AngularCompilerPlugin.isSupported(),
|
||||
aot: false,
|
||||
buildOptimizer: false
|
||||
},
|
||||
production: {
|
||||
|
@ -14,9 +14,9 @@ export default function () {
|
||||
// These tests should be moved to the default when we use ng5 in new projects.
|
||||
return Promise.resolve()
|
||||
// tests for register_locale_data transformer
|
||||
.then(() => ng('build', '--locale=fr'))
|
||||
.then(() => ng('build', '--aot', '--locale=fr'))
|
||||
.then(() => expectFileToMatch('dist/main.bundle.js', /registerLocaleData/))
|
||||
.then(() => expectFileToMatch('dist/main.bundle.js', /angular_common_locales_fr/))
|
||||
.then(() => rimraf('dist'))
|
||||
.then(() => expectToFail(() => ng('build', '--locale=no-locale')))
|
||||
.then(() => expectToFail(() => ng('build', '--aot', '--locale=no-locale')))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user