Skip to content

Instantly share code, notes, and snippets.

@GaetanoPiazzolla
Created July 21, 2021 08:03
Show Gist options
  • Save GaetanoPiazzolla/7fd1fc89190ed302da9b682aafb9c831 to your computer and use it in GitHub Desktop.
Save GaetanoPiazzolla/7fd1fc89190ed302da9b682aafb9c831 to your computer and use it in GitHub Desktop.
Configuration for webpack copying assets folder with env.js file
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = env => {
return {
module: {
. . . },
plugins: [
. . .
new CopyWebpackPlugin([ { from: 'src/assets, to: assets } ])
]
]
@GaetanoPiazzolla
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment