Created
May 16, 2019 14:01
-
-
Save CezaryDanielNowak/a30cb4b6138b57589dc29e627c303b80 to your computer and use it in GitHub Desktop.
This file contains 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
// 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