Skip to content

Commit

Permalink
Fix build of apps/notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Jun 30, 2020
1 parent 2e1a4d4 commit e17b6ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/notifications/package.json
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"clean": "check-npm-client && npx rimraf dist",
"prebuild": "check-npm-client && yarn run clean",
"build": "check-npm-client && calypso-build --config='./webpack.config.js'"
"build": "check-npm-client && calypso-build --config='./webpack.config.js' --display errors-only"
},
"dependencies": {
"@automattic/calypso-color-schemes": "^2.1.1",
Expand Down
4 changes: 4 additions & 0 deletions apps/notifications/webpack.config.js
Expand Up @@ -52,6 +52,10 @@ function getWebpackConfig(

return {
...webpackConfig,
resolve: {
...webpackConfig.resolve,
mainFields: [ 'calypso:main', 'browser', 'module', 'main' ],
},
plugins: [
...webpackConfig.plugins,
new HtmlWebpackPlugin( {
Expand Down

0 comments on commit e17b6ee

Please sign in to comment.