4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AngularでStatic Site Generatorを使ってみた

Posted at

AngularでStatic Site Generatorを使ってみた

angular v9以上であれば使えるようである。

下記コマンドで依存含めていい感じに入れてくれる。
ng add @scullyio/init

差分は下記

src/polyfills.ts
/***************************************************************************************************
  
* SCULLY IMPORTS
  
*/
  
// tslint:disable-next-line: align 
import 'zone.js/dist/task-tracking';
src/app/app.component.ts

import {IdleMonitorService} from '@scullyio/ng-lib';
...
export class AppComponent implements OnInit {
    constructor(private idle: IdleMonitorService,


scully.config.js
exports.config = {
  projectRoot: "./src/app",
  routes: {
  }
};
package.json
  "scripts": {
    "e2e": "ng e2e",
    "scully": "scully",
    "scully:serve": "scully serve"
    ...},
  "dependencies": {
    "@scullyio/init": "0.0.9",
    "@scullyio/ng-lib": "latest",
    "@scullyio/scully": "latest"
   ...}
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?