xiaoliang2233angularcli
v1.5.7
Published
CLI tool for Angular
Downloads
6
Maintainers
Readme
fork @angular/cli 1.5.0, choose some extra loader that angular/cli don't support by modify webpack config, and then transform my own project to angular-cli
this npm package's name is xiaoliang2233angularcli
custom content
- use html-loader to handle html files instead of raw-loader
- use pug instead of html to developing appliction by adding pug-html-loader, but you can still use html whatever you want
- add some config
baseHrefDev
,deployUrlTest
,deployUrlProd
in .angualr-cli.json, we can use those properties. used for compiled index.html . - static file should tag hash filename except for ProjectRoot assets directory, but all compiled files remove to dist/assets directory.
- for my own project reasons, when I run
ng build
, all compiled css and js files will remove todist/${my timestamp}
- I add a directory
libs
in ProjectRoot. when webpack resolve modules, it should find node_modules first, and then search in libs. so we can add some extra js inlibs
,for exampleqrcode.js
, useimport qrcode
will work fine.
fixed
- I add some extra properties and descriptions in schema.json so that we can add it on .angular-cli.json. or it will get an error on IDE.
todo
when using
ng new
to generate new project, it still install @angular/cli. I will fix it. I find it in @schematic/angular... I may be need to fork it and modified it!some global styles and scripts should remove to
dist/${my timestamp}
tooI need SSR..
remark
我的英语很差啦, 我以后坚持写英语..😁