Skip to content

Commit 8152a96

Browse files
nchutchindkatallaxie
authored andcommitted
Copy humans.txt and robots.txt to dist/ (PatrickJS#1076)
Fixes issue PatrickJS#1070 The standard for humans.txt and robots.txt says that they should be available from the root of the application. This change will make sure that they get copied from the assets folder to the dist/ root instead of to dist/assets.
1 parent 5aee654 commit 8152a96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/webpack.common.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ module.exports = function(options) {
244244
new CopyWebpackPlugin([{
245245
from: 'src/assets',
246246
to: 'assets'
247+
}], {
248+
ignore: [
249+
'humans.txt',
250+
'robots.txt'
251+
]
252+
}),
253+
new CopyWebpackPlugin([{
254+
from: 'src/assets/robots.txt'
255+
}, {
256+
from: 'src/assets/humans.txt'
247257
}]),
248258

249259
/*

0 commit comments

Comments
 (0)