bundle-up icon indicating copy to clipboard operation
bundle-up copied to clipboard

Option for specifying custom asset folder?

Open trnc-ck opened this issue 13 years ago • 2 comments

hi,

is there a way to specify a custom folder name fpr the generated assets? instead of the given

/generated/bundle/037e6e5_global.css

i want to use

/assets/037e6e5_global.css

any advice? thanks!

trnc-ck avatar Aug 28 '12 12:08 trnc-ck

No, there is nothing in the api currently that exposes the functionality to change that path for generated files. Why do you need it?

The only thing that you can change is staticRoot. Like __dirname + "/assets/" instead of __dirname + "/public/" for example.

Cowboy-coder avatar Aug 28 '12 17:08 Cowboy-coder

+1 This is actually pretty crucial, since a lot of css files reference images and other assets using a relative path, using /generate/bundle breaks all my css. It's really preventing me from using this in production.

zthomas avatar Dec 26 '12 23:12 zthomas