Skip to content

Commit

Permalink
fix(profiles): Load static images from profiles domain
Browse files Browse the repository at this point in the history
  • Loading branch information
lutangar committed Oct 30, 2020
1 parent 868ed40 commit dddd6e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack.profiles.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ module.exports = function webpack(env = {}, argv = {}) {
...defaultWebpackConfig,
module: {
rules: [
...defaultWebpackConfig.module.rules,
{
test: /\.(png|jpe?g|gif)$/i,
include: path.resolve(__dirname, '..', 'src/app/profiles'),
include: path.resolve(__dirname, 'src/'),
loader: 'file-loader',
options: {
publicPath: process.env.PROFILES_ASSETS_PATH,
publicPath: env.PROFILES_ASSETS_PATH,
name: '[path][name].[ext]',
context: 'src/assets'
}
}
},
...defaultWebpackConfig.module.rules,
]
},
entry: [
Expand Down

0 comments on commit dddd6e6

Please sign in to comment.