Skip to content

Commit

Permalink
Copy svg and txt files to public folder
Browse files Browse the repository at this point in the history
SVG and txt files were not copied to public.

SVG files were added to webpack config in gatsbyjs#34.
  • Loading branch information
fson committed Sep 22, 2015
1 parent 1bd737d commit 92f92bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/post-build.coffee
Expand Up @@ -41,6 +41,6 @@ module.exports = (program, cb) ->
)

# Copy static assets to public folder.
glob directory + '/pages/**/?(*.jpg|*.png|*.pdf|*.gif|*.ico)', null, (err, files) ->
glob directory + '/pages/**/?(*.jpg|*.png|*.svg|*.pdf|*.gif|*.ico|*.txt)', null, (err, files) ->
async.map files, copy, (err, results) ->
cb(err, results)

0 comments on commit 92f92bf

Please sign in to comment.