-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve lookup of stuff #1
Comments
How about passing a To start a new project we could create a copy/pasteable script that creates an initial Regarding the HTML file: we haven't really experimented with it yet, but having the templated |
I'm not even sure the index.html template is that useful. And as far as I can tell, it's the only place we even use the information from And yes, a global packup would only be useful for quick experiments but nothing more. I'd never put |
We could also use the |
Currently packup can be run in one of three ways:
packup
(looks for anindex.js
in the current directory, uses that as entry file)packup somedir
(looks for anindex.js
in thesomedir
, uses that as entry file)packup somedir/somefile.js
(uses this file as entry file)The directory of the entry file is also set as webpack
resolve.root
andcontentBase
.Additionally, it looks for a
package.json
and anindex.html
in the directory of the entry file and uses those if available. Otherwise it supplies dummy package info (only used for populating the index.html template) and uses its own index.html template file.The problem is, that in our current setup
package.json
andindex.html
most often are not located in the same directory as the entry file. The actual code is in another directory, most oftensrc
. So we would either need another way to resolve the locations of necessary files outside this directory (e.g. using node-resolve) or allow other configuration options for packup. I prefer the former, although we may restrict lookup to only one level above the root directory.Edit: Not sure if node-resolve would work as I expected
The text was updated successfully, but these errors were encountered: