Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Remove devtool from production bundle #268

Merged
merged 10 commits into from
Dec 1, 2022
7 changes: 5 additions & 2 deletions .github/workflows/core-ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'yarn'
Expand All @@ -27,3 +27,6 @@ jobs:

- name: Tests
run: yarn test:int

- name: Build smoke check package
run: yarn package
4 changes: 3 additions & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const common = require('./webpack.common.js');

module.exports = merge(common, {
mode: 'production',
devtool: 'eval',
// By removing source map generation, we reduce bundle size by 50%.
// See https://webpack.js.org/configuration/devtool/ for more details.
devtool: false,
optimization: {
minimize: true,
},
Expand Down