Copy-webpack-plugin: copy dot files

Created on 10 Feb 2016  路  4Comments  路  Source: webpack-contrib/copy-webpack-plugin

I've this config:

new CopyWebpackPlugin([
        { from: `${paths.static}/pom.xml` },
        { from: `${paths.static}/.htaccess` }
      ], {
        ignore: []
      }),

however the file .htaccess isn't copied, what could be?

Most helpful comment

@alex88 I'm probably making the same stupid mistake, can you tell what you found about it please?

All 4 comments

Nvm, stupid mistake

@alex88 I'm probably making the same stupid mistake, can you tell what you found about it please?

@jayrmotta I don't remember actually, I don't have that code in any repo either, maybe the ignore key is wrong, I really don't know sorry

For people looking in the future, i was checking the directory with 'ls' instead of 'ls -a', so the file was actually being copied

new CopyWebpackPlugin([ {from: './public/.htaccess'} ])

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smashercosmo picture smashercosmo  路  6Comments

richmeij picture richmeij  路  5Comments

gh67uyyghj picture gh67uyyghj  路  4Comments

padinko picture padinko  路  3Comments

jdeniau picture jdeniau  路  5Comments