Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CezaryDanielNowak/a30cb4b6138b57589dc29e627c303b80 to your computer and use it in GitHub Desktop.
Save CezaryDanielNowak/a30cb4b6138b57589dc29e627c303b80 to your computer and use it in GitHub Desktop.
// Solution 1:
require.context('./sf/assets/', true, /\.(png|jpe?g|svg)$/);
// Solution 2:
new CopyPlugin([
{ from: path.resolve(paths.appSrc, 'sf/assets') , to: paths.appBuild},
]),
// Testing in dev server:
https://localhost:3000/webpack-dev-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment