0.20.0サポート
私の幸運な日です。 An aurelia-cli
release from 8 hours前にこの氏は述べています:
特長:サポートバンドルのリビジョン番号
Walkthru
まず、0.20.0をインストールし、新しいアプリを作成します。
npm install [email protected]">=0.20.0" -g
au new my-app
または、既存のアプリをアップグレードしてください。
npm install [email protected]">=0.20.0" --save-dev
次に、my-app/aurelia-project/aurelia.json
を開きます。
build.options.rev
プロパティを設定します。最後に
<script src="scripts\vendor-bundle.js" data-main="aurelia-bootstrapper">
<script src="scripts\vendor-bundle-947c308e28.js" data-main="aurelia-bootstrapper">
、構築:build.targets
"targets": [
{
"id": "web",
"displayName": "Web",
"output": "scripts",
"index": "index.html"
}
],
内部output
とindex
プロパティaurelia-cli
がindex
ファイルを探し、このようなscripts\vendor-bundle.js
への参照を置き換えますを設定し
"options": {
"minify": "stage & prod",
"sourcemaps": "dev & stage",
"rev": "true"
},
アプリ。
あなたのバンドルは、次のようになります:
app-bundle-e0c4d46f7d.js
vendor-bundle-dba9184d78.js
ソースを
cli/lib/build/bundler.js
let defaultBuildOptions = {
minify: "stage & prod",
sourcemaps: "dev & stage",
rev: false
};
cli/lib/build/bundler.js
GitHubの上
http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/the-aurelia-cli/10 – rball