Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu 14.04
ng --version
. If there's nothing outputted, please runnode --version
and paste the result here:angular-cli: 1.0.0-beta.9
node: 4.4.4
os: linux x64
According to the documentation it is possible to create different environment files. Therefore I created three environments like web, android and ios. In this files I also have defined some settings like the base-href. But it seems during the build process these values are not inserted into the index.html e.g. when I try to set the base-href like this
<base href="{{environement.base}}">
e.g. my environment.web.ts looks like this
export const environment = {
cordova: false,
web: true,
android: false,
ios: false,
base: '/'
};
The value stays empty within in the index.html
There documentation does mention environment files, but they aren't used to template index.html
at all. You use it as imports within your application and that's it.
This is due to a typo in environment : <base href="{{environement.base}}">
should be
<base href="{{environment.base}}">
@sirkcion
yes there is a typo, but still without the typo it is not working. the compiler then tells me the following:
The Broccoli Plugin: [HandlebarReplace] failed with:
Error: Parse error on line 66:
...
Most helpful comment
+1