-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Regroup non-static files #6285
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
Closed
brotzky
wants to merge
37
commits into
gatsbyjs:master
from
narative:topics/regroup-non-static-files
Closed
Regroup non-static files #6285
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
4803d61
First try at cleaning up build output
brotzky 582fb41
Fix typo in type annotations (#6288)
sudodoki 50dd934
Fix broken images (#6282)
giraffesyo 0986a67
add first draft of API Lifecycle docs (#6229)
tsiq-swyx 7ed8da9
Update adding-tags-and-categories-to-blog-posts.md (#6294)
XHMM e1b8be9
Adding flag to build, ordering pathPrefix correctly, and cleaned up s…
brotzky 77371b9
Removing the deletion of files as referenced by m-allanson and pieh
brotzky 59cf18a
Adding support for styles grouping
brotzky a9bc9b8
Update site-showcase-submissions.md concerning featured sites (#6281)
fdcf23a
final draft ready for review
2acc8b9
[www] Fix #6295 (#6312)
fk 912751e
Fix typo (#6296)
giraffesyo 0513a6c
Pass apiRunner into loader (#6272)
m-allanson 1041f85
Fix tracedSVG fragment support in Gatsby 2.0 (#6297)
tylermenezes 50cb0bb
Add empty pages.json. (#5824) (#6304)
ascorbic 37d007a
switch components reducer to use Map for state (#6307)
pieh 0add064
return null object for ssr pageRenderer - fixes importing gatsby-brow…
pieh f5d143b
Track queries between builds (#6322)
pieh eb17042
edits suggested by Phil
shannonbux b8c8040
add blog showcase (#6287)
zerosoul f9f4cd6
Adding hyperlinks to images
shannonbux 06e7360
Made gatsby-plugin-netlify-cms work with gatsby v2 (#6292)
emanueleperuffo 93c3554
Added site titles
shannonbux e02df8f
added tags
shannonbux 6ec8c70
minor edits
shannonbux 11206e4
chore(release): Publish
m-allanson 150d862
other minor edits
shannonbux 3637083
Merge pull request #6317 from gatsbyjs/graphic-design-blogpost
shannonbux c2bdb2d
[gatsby-plugin-offline] Add criticlal scripts and links to static fil…
kkemple 6f789f6
chore(release): Publish
m-allanson 366bd97
renaming output directories to js and css
brotzky 972fb6b
First try at cleaning up build output
brotzky 4042ae1
Adding flag to build, ordering pathPrefix correctly, and cleaned up s…
brotzky 695cb68
Removing the deletion of files as referenced by m-allanson and pieh
brotzky 699e5ca
Adding support for styles grouping
brotzky eed6616
renaming output directories to js and css
brotzky d8a8377
Merge branch 'topics/regroup-non-static-files' of github.com:narative…
brotzky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,15 +88,15 @@ module.exports = async ( | |
|
|
||
| function getOutputPaths() { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was duplicate code in the webpack output configs, so I moved it into a function that also handles the grouping of files.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| const path = program.groupFiles | ||
| ? directoryPath(`public/scripts`) | ||
| ? directoryPath(`public/js`) | ||
| : directoryPath(`public`) | ||
|
|
||
| let publicPath = program.prefixPaths | ||
| ? `${store.getState().config.pathPrefix}/` | ||
| : `/` | ||
|
|
||
| if (program.groupFiles) { | ||
| publicPath = `${publicPath}scripts/` | ||
| publicPath = `${publicPath}js/` | ||
| } | ||
|
|
||
| return { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KyleAMathews renamed to
cssandjsHere's the output now
edit: just noticed deploy failed. Going to fix that.