Created
July 21, 2021 08:03
-
-
Save GaetanoPiazzolla/7fd1fc89190ed302da9b682aafb9c831 to your computer and use it in GitHub Desktop.
Configuration for webpack copying assets folder with env.js file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = env => { | |
return { | |
module: { | |
. . . }, | |
plugins: [ | |
. . . | |
new CopyWebpackPlugin([ { from: 'src/assets, to: assets } ]) | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to medium article:
Update Angular/React environment dynamically reading variables from Kubernetes ConfigMaps