Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance of PolymerCli #3458

Open
jogibear9988 opened this issue Sep 26, 2019 · 7 comments
Open

Performance of PolymerCli #3458

jogibear9988 opened this issue Sep 26, 2019 · 7 comments
Labels

Comments

@jogibear9988
Copy link

A Build with following options: (polymer.json)

{
  "sources": [
   "dist/**",
   "assets/resources/**",
   "assets/images/**"
  ],
  "extraDependencies": [],
  "builds": [
	{
	  "name": "HTML",
	  "browserCapabilities": ["es2015", "push", "serviceworker", "modules"],
	  "html": { "minify": true},
	  "css": { "minify": true},
	  "js": { "minify": true, "compile": false},
	  "bundle": {             
		"exclude": ["../libs/stimulsoft/" ], 
		"inlineCss": false,          
		"inlineScripts": true,       
		"rewriteUrlsInTemplates": false, 
		"sourcemaps": false,          
		"stripComments": true   
	  },
	  "addServiceWorker": false,
	  "addPushManifest": false
	}
  ],
  "moduleResolution": "node",
  "npm": true,
  "lint": {
	"rules": [
	  "polymer-3"
	]
  }
}

and following command

 call node --max-old-space-size=6144 node_modules\polymer-cli\bin\polymer build --verbose --root ../../bin/Debug/HTML --entrypoint index.html

needs about 25minutes (and I've to do it 3 times, cause I have 3 different html files)

Is there a way to increase this speed?

@smashah
Copy link

smashah commented Oct 1, 2019

Mines just failed with a FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - Javascript heap out of memory on two separate systems.

I set bundle: false and it worked perfectly fine.

@jogibear9988
Copy link
Author

yes, but then it‘s not bundeled...

@smashah
Copy link

smashah commented Oct 2, 2019

@jogibear9988 this worked for me:
fsevents/fsevents#282 (comment)

Upgrade to node 12

@jogibear9988
Copy link
Author

does this also increase performance?

@paresy
Copy link

paresy commented Oct 11, 2019

We are seeing the same issue. Build times are increasing beyond sane limits.

@smashah
Copy link

smashah commented Oct 11, 2019

No it doesn't increase performance. Still 3+ minutes up from usual. I'm going to try implement open-wc build suggestions soon-ish.

@stale
Copy link

stale bot commented Oct 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants