apache_conf Plunker - Angular v5配置 Posted 2021-05-23
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Plunker - Angular v5配置相关的知识,希望对你有一定的参考价值。
# Plunker with Angular v5
Unfortunately when you create a new Plunker demo, the files are imported in a way from NPM to **always take the latest version**. This is good in a way and bad in another as now with the release of Angular version 6 & RxJS 6 most Plunkers simply break.
## Option 1: Upgrade your Plunks
The best option is to upgrade and give your users/readers the latest and greatest stuff Angular version 6 and RxJS version 6 provide.
## Option 2: Patch your Plunks
If you cannot upgrade immediately, please consider patching your `config.js` in Plunker with the file below to make sure your users still have a functional and running demo :smiley:
Thx ❤️
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
paths: {
'npm:': 'https://unpkg.com/'
},
//map tells the System loader where to look for things
map: {
'app': './src',
'@angular/core': 'npm:@angular/core@5.2.11/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common@5.2.11/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler@5.2.11/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser@5.2.11/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic@5.2.11/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http@5.2.11/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router@5.2.11/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms@5.2.11/bundles/forms.umd.js',
'@angular/core/testing': 'npm:@angular/core@5.2.11/bundles/core-testing.umd.js',
'@angular/common/testing': 'npm:@angular/common@5.2.11/bundles/common-testing.umd.js',
'@angular/compiler/testing': 'npm:@angular/compiler@5.2.11/bundles/compiler-testing.umd.js',
'@angular/platform-browser/testing': 'npm:@angular/platform-browser@5.2.11/bundles/platform-browser-testing.umd.js',
'@angular/platform-browser-dynamic/testing': 'npm:@angular/platform-browser-dynamic@5.2.11/bundles/platform-browser-dynamic-testing.umd.js',
'@angular/http/testing': 'npm:@angular/http@5.2.11/bundles/http-testing.umd.js',
'@angular/router/testing': 'npm:@angular/router@5.2.11/bundles/router-testing.umd.js',
'rxjs': 'npm:rxjs@5.5.11',
'typescript': 'npm:typescript@2.0.2/lib/typescript.js'
},
//packages defines our app package
packages: {
app: {
main: './main.ts',
defaultExtension: 'ts'
},
rxjs: {
defaultExtension: 'js'
}
}
});
以上是关于apache_conf Plunker - Angular v5配置的主要内容,如果未能解决你的问题,请参考以下文章
html Plunker嵌入代码
如何将 plunker 连接到本地 Node.js 服务器?
更新到 Angular 6 和 rxjs 6 后 Plunker 坏了
apache_conf WWW - AÑADIRwwwen en URL
apache_conf Redireccionar sin WWW a con WWW
apache_conf Redireccionar con WWW a sin WWW