Skip to content

Commit

Permalink
Adds copy-webpack-plugin to copy noaa plugin codap plugin menu icon t…
Browse files Browse the repository at this point in the history
…o dist folder
  • Loading branch information
eireland committed Mar 1, 2024
1 parent 85ad3b0 commit 021f2b4
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 6 deletions.
251 changes: 245 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"autoprefixer": "^10.4.14",
"caniuse-lite": "^1.0.30001489",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"csvjson": "^5.1.0",
Expand Down
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
const os = require('os');
const CopyPlugin = require('copy-webpack-plugin');

// DEPLOY_PATH is set by the s3-deploy-action its value will be:
// `branch/[branch-name]/` or `version/[tag-name]/`
Expand Down Expand Up @@ -148,6 +149,11 @@ module.exports = (env, argv) => {
publicPath: DEPLOY_PATH
})] : []),
new CleanWebpackPlugin(),
new CopyPlugin({
patterns: [
{ from: 'src/assets/images/icon-noaa-weather.svg', to: 'assets/images/icon-noaa-weather.svg' },
],
}),
]
};
};

0 comments on commit 021f2b4

Please sign in to comment.