Skip to content

Commit

Permalink
Merge pull request umijs#582 from umijs/fix-copy-ignore-DS_Store
Browse files Browse the repository at this point in the history
copy ignore DS_Store
  • Loading branch information
sorrycc authored Jun 26, 2018
2 parents 747073c + 824f930 commit 189080a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/af-webpack/src/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,16 @@ export default function getConfig(opts = {}) {
const copyPlugins = opts.copy ? [new CopyWebpackPlugin(opts.copy)] : [];
if (existsSync(resolve(opts.cwd, 'public'))) {
copyPlugins.push(
new CopyWebpackPlugin([
{
from: resolve(opts.cwd, 'public'),
to: outputPath,
toType: 'dir',
},
]),
new CopyWebpackPlugin(
[
{
from: resolve(opts.cwd, 'public'),
to: outputPath,
toType: 'dir',
},
],
{ ignore: ['**/.*'] },
),
);
}

Expand Down

0 comments on commit 189080a

Please sign in to comment.