File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ const critical = require ( 'critical' ) ;
2+
3+ critical . generate ( {
4+ src : 'index.html' ,
5+ css : [ 'assets/dist/app.css' ] ,
6+ target : 'assets/dist/critical.css' ,
7+ width : 1440 ,
8+ height : 900
9+ } ) ;
Original file line number Diff line number Diff line change 77 "start" : " webpack --watch --NODE_ENV=development" ,
88 "optisize" : " optisize --src=\" ./assets/images\" " ,
99 "html" : " php index.php > index.html" ,
10- "critical" : " critical index.html > assets/dist/ critical.css " ,
10+ "critical" : " node critical.js " ,
1111 "rm-html" : " rm index.html" ,
1212 "pwa" : " create-pwa --icon=\" ./assets/images/favicon/icon.png\" --launch=\" ./assets/images/favicon/launch.png\" " ,
1313 "prod" : " yarn build && yarn html && yarn critical && yarn rm-html" ,
You can’t perform that action at this time.
0 commit comments