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

Set name defaults for file/url-loader #435

Merged
merged 2 commits into from Nov 21, 2017

Conversation

Projects
None yet
3 participants
@timkelty
Contributor

timkelty commented Nov 15, 2017

This provides predictable paths for when using dev-server.
This makes for easier use in a server-side context, and makes things more consistent with how js is named and rev'd.

@timkelty timkelty referenced this pull request Nov 15, 2017

Merged

Support options for server-side html #434

8 of 8 tasks complete
.rule('svg')
.test(/\.svg(\?v=\d+\.\d+\.\d+)?$/)
.use('url')
.loader(urlLoader)
.options(merge({ limit }, options.svg || {}));
.options(merge({ limit, name }, options.svg));

This comment has been minimized.

@eliperelman

eliperelman Nov 15, 2017

Member

options.svg || {}

.rule('img')
.test(/\.(png|jpg|jpeg|gif)(\?v=\d+\.\d+\.\d+)?$/)
.use('url')
.loader(urlLoader)
.options(merge({ limit }, options.img || {}));
.options(merge({ limit, name }, options.img));

This comment has been minimized.

@eliperelman

eliperelman Nov 15, 2017

Member

options.img || {}

.rule('ico')
.test(/\.ico(\?v=\d+\.\d+\.\d+)?$/)
.use('url')
.loader(urlLoader)
.options(merge({ limit }, options.ico || {}));
.options(merge({ limit, name }, options.ico));

This comment has been minimized.

@eliperelman

eliperelman Nov 15, 2017

Member

options.ico || {}

@timkelty

This comment has been minimized.

Contributor

timkelty commented Nov 16, 2017

My bad, changes made.

@eliperelman

LGTM!

@eliperelman

This comment has been minimized.

Member

eliperelman commented Nov 16, 2017

@edmorley how would you feel about cherry picking this and #434 into release/v7?

@edmorley

This comment has been minimized.

Member

edmorley commented Nov 16, 2017

I'd have to look in more detail, but some of the changes in the other PR seem borderline breaking, depending on the weird and wonderful things other people are doing :-)

@timkelty

This comment has been minimized.

Contributor

timkelty commented Nov 16, 2017

@edmorley @eliperelman I did a quick review of the borderline-breaking issues here: #434 (comment)

@eliperelman

This comment has been minimized.

Member

eliperelman commented Nov 16, 2017

Agreed, this would probably be breaking, we can ship this for v8, and explore demand for v7.

@eliperelman eliperelman merged commit d680010 into neutrinojs:master Nov 21, 2017

2 checks passed

codacy/pr Good work! A positive pull request.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@timkelty timkelty deleted the timkelty:predictable-paths-for-dev-server branch Nov 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment