Skip to content

Instantly share code, notes, and snippets.

@renevall
Last active December 31, 2015 03:18
Show Gist options
  • Save renevall/4ca02d61548f30f495a4 to your computer and use it in GitHub Desktop.
Save renevall/4ca02d61548f30f495a4 to your computer and use it in GitHub Desktop.
Angular2 - Compiled Files in their own folder
<script>
System.config({
packages: {
build: { //name must match folder
format: 'register',
defaultExtension: 'js'
}
}
});
System.import('build/boot') //import must match folder
.then(null, console.error.bind(console));
</script>
{
"compilerOptions": {
"target": "ES5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "./build/" //output folder
},
"exclude": [
"node_modules"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment