我们需要使用webpack实现aurelia-i18n包。请指定webpack.config.js配置
的package.json
{
"dependencies":
{
"aurelia-bootstrapper-webpack": "^1.0.0",
"aurelia-event-aggregator": "^1.0.0",
"aurelia-framework": "^1.0.1",
"aurelia-history-browser": "^1.0.0",
"aurelia-loader-webpack": "^1.0.3",
"aurelia-logging-console": "^1.0.0",
"aurelia-templating-binding": "^1.0.0",
"aurelia-templating-resources": "^1.0.0",
"aurelia-templating-router": "^1.0.0"
},
"devDependencies":
{
"@types/node": "^6.0.52",
"aurelia-webpack-plugin": "^1.1.0",
"bluebird": "^2.9.2",
"html-loader": "^0.4.3",
"source-map-loader": "^0.1.5",
"toastr": "^2.1.2",
"ts-node": "^1.7.2",
"webpack": "^1.14.0"
}
}
答案 0 :(得分:1)
我不确定这是否完全正确的SO指南,但我没有描述有关webpack配置的每一个细节,而是想链接到官方文档,这可能是比最新的更新任何问题。
http://aurelia.io/hub.html#/doc/article/aurelia/i18n/latest/i18n-with-aurelia/2