Closed cmnstmntmn closed 7 years ago
Interesting.
Could you post the output of setting debug to 1? Either -d 1
in the console or debug: 1
in js?
Thanks
Starting wright...
Debug: { name: 'ui-kit',
main: 'index.html',
run: 'm.redraw',
serve: '/Users/constantin/Sites/ui-kit',
execute: [],
watch: [ '**/*.html' ],
js:
[ { watch: 'src/**/*.js',
path: '/dist/app.js',
compile: [Function: roll] } ],
css:
[ { watch: 'src/css/**/*.css',
compile: [Function: style],
path: '/dist/app.css' } ],
port: 3018,
jail: true,
debug: 1,
fps: false,
clone: false,
set: [Function],
id: 'Sites-ui-kit_88945a1',
external: false,
appData: '/Users/constantin/Library/Application Support/wright/Sites-ui-kit_88945a1',
url: 'http://localhost:3018/',
debugPort: 3019,
debugProxyPort: 3020,
debugUrl: 'http://localhost:3019' }
@cmnstmntmn I noticed that in the screenshot the node process has 3 hours and 35 minutes cpu time, which indicates it's been running for quite some time. Are you sure that node process was launched by wright? Can you replicate this easily?
well, it's easy to replicate (in my case) is happening every time i'm running wright. i'll come with some extra details later today.
i'm wondering if some subprocesses are responsible for this issue;
rollup
, postcss
that i'm using
There might be a watch in one of those running recursively? If it's something you can share could you put it in a gist?
here's the config/plugins that i'm using
Files loaded in the browser needs to have a match inside the served folder.
When serve
is not specified directly it will default to the current working directory or the base directory of the path in main
.
In this case the solution was to either set serve: 'dist'
or move index.html
to dist
and set main to main: 'dist/index.html'
I'll try to see if I can somehow make a better warning if wright tries to watch too many missing files..
i noticed that i'm running out of CPU soon after wright is started.