@@ -17,32 +17,23 @@ module.exports = {
1717 new CopyWebpackPlugin ( [
1818
1919 // {output}/to/file.txt
20- { from : './colors.js' , to : '../../web/src/colors.js' } ,
2120 { from : './crayola.json' , to : '../../web/src/crayola.json' } ,
22- { from : './ColorListItem.js' , to : '../../web/src/ColorListItem.js' } ,
23- { from : './SearchBox.js' , to : '../../web/src/SearchBox.js' } ,
24- { from : './SearchResults.js' , to : '../../web/src/SearchResults.js' } ,
25- { from : './SearchInput.js' , to : '../../web/src/SearchInput.js' } ,
26-
27- { from : './SearchBox.js' , to : '../../github-web/src/SearchBox.js' } ,
28- { from : './SearchResults.js' , to : '../../github-web/src/SearchResults.js' } ,
29- { from : './SearchInput.js' , to : '../../github-web/src/SearchInput.js' } ,
30-
21+ { from : './colors.js' , to : '../../web/src/colors.js' } ,
3122
32- // Copy directory contents to {output}/to/directory/
33- // { from: 'from/directory ', to: 'to/directory' },
23+ { from : './SearchBox.js' , to : '../../web/src/' } ,
24+ { from : './Web*.js ' , to : '../../web/src/' , flatten : true } ,
3425
35- // Copy glob results (with dot files) to /absolute/path/
36- // {
37- // from: {
38- // glob:'from/directory/**/*',
39- // dot: true
40- // },
41- // to: '/absolute/path'
42- // },
26+ { from : './SearchBox.js' , to : '../../github-web/src/' } ,
27+ { from : './Web*.js' , to : '../../github-web/src' , flatten :true } ,
4328
4429 ] , {
4530
31+ ignore : [
32+ // Doesn't copy any files with a txt extension
33+ '*.test.js' ,
34+ '*.config.js' ,
35+ ] ,
36+
4637 // By default, we only copy modified files during
4738 // a watch or webpack-dev-server build. Setting this
4839 // to `true` copies all files.
0 commit comments