angular-rollup
Advanced tools
Changelog
1.0.0-beta.6
ngr update --angularVersion
to update your package.json to a specific version of @angular--include
flag can be configured to auto import Component, Directive, Routes into the Module.EXAMPLE:
ngr generate module --include component,route,spec,e2e --dir src/app/shared/components/my-module --name my-module
COMING SOON FOR 1.0.0-beta
Changelog
1.0.0-beta.4
ngr build dev --jit
Changelog
1.0.0-beta.3
Changelog
1.0.0-beta.2
libsass
compilersrc/style
directory to be deployed to /build
or /dist
config.globalCSSFilename
propertyThe build will default to the following configuration for SASS if you do not provide one:
{
includePaths: ['src/style/'],
outputStyle: 'expanded',
sourceComments: false
}
Configure SASS in build.config.js
for each build like in the following example. The configuration takes any options node-sass can be configured with, except file
and outFile
which is handled by the build scripts.
style: {
sass: {
dev: {
includePaths: ['src/style/'],
outputStyle: 'expanded',
sourceComments: true
},
lib: {
includePaths: ['src/style/'],
outputStyle: 'expanded',
sourceComments: false
},
prod: {
includePaths: ['src/style/'],
outputStyle: 'expanded',
sourceComments: false
}
}
}
Changelog
1.0.0-beta.1
NOTE: While in BETA this package is EXPERIMENTAL
Closure builds are only available for < 5.0.0 at the moment.
To build for production with ClosureCompiler use the following flags:
ngr build prod --closure
To build for production with support for lazyloaded routes:
ngr build prod --closure --lazy
Changelog
1.0.0-beta.0
angular-rollup
, angular2-rollup
is deprecated@angular
5.0.0+ngr build dev --watch
will trigger ngc
in --watch
modengr build jit
triggers JIT build, use for @angular
4.0.0 development@angular
boilerplateNOTE: While in BETA this package is EXPERIMENTAL
If you want to build an app with this project now it is recommended you use the angular2-rollup
npm package instead.
Minimal changes will be required to upgrade to angular-rollup
.
npm install angular2-rollup@4.4.0-RC.0