Skip to content

Commit

Permalink
Merge pull request #4245 from smartcontractkit/bugfix/fix-operator-ui…
Browse files Browse the repository at this point in the history
…-dev-build

Fixes an issue where starting operator ui in dev mode would not load the page
  • Loading branch information
samsondav committed Apr 20, 2021
2 parents 171ceab + 4d28c80 commit 55d0701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion operator_ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
output: {
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/assets/', // JS files are served from `/assets` by web
publicPath: '/',
},
plugins: [
new CleanWebpackPlugin(),
Expand Down
4 changes: 4 additions & 0 deletions operator_ui/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ const CompressionPlugin = require('compression-webpack-plugin')
const webpackBase = require('./webpack.config')

module.exports = Object.assign(webpackBase, {
output: {
...webpackBase.output,
publicPath: '/assets/', // JS files are served from `/assets` by web
},
plugins: [...webpackBase.plugins, new CompressionPlugin({})],
})

0 comments on commit 55d0701

Please sign in to comment.