Skip to content

Commit

Permalink
feat: DevTools correctly ommitted at production
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jan 27, 2023
1 parent d8d91b5 commit aeafee1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/web/package.json
Expand Up @@ -39,7 +39,7 @@
"build": "rollup -c rollup.config.js && tsc --project tsconfig.prod.json",
"clean": "rm -rf build build-e2e dist dist-e2e lib",
"test": "jest --config ./jest.config.js --collect-coverage",
"develop": "concurrently \"rollup -c rollup.dev.js -w\" \"tsc --watch --preserveWatchOutput --project tsconfig.prod.json\" ",
"develop": "concurrently \"rollup -c rollup.config.js -w\" \"tsc --watch --preserveWatchOutput --project tsconfig.prod.json\" ",
"schema": "openapi-typescript http://localhost:8202/v3/api-docs/Accessible%20with%20API%20key --output ./src/ui/client/apiSchema.generated.ts"
},
"author": "Tolgee",
Expand Down
3 changes: 1 addition & 2 deletions packages/web/rollup.common.js
Expand Up @@ -39,7 +39,7 @@ export const commonPlugins = [
preventAssignment: true,
}),
replace({
'process.env.NODE_ENV': JSON.stringify('productionuction'),
'process.env.NODE_ENV': JSON.stringify('production'),
include: ['node_modules/**', '../../node_modules/**'],
preventAssignment: true,
}),
Expand All @@ -51,7 +51,6 @@ export const commonPlugins = [
* @param {string} format
* @param {string} ext
*/

const packageOutput = (name, format, ext) => {
return [
{
Expand Down
6 changes: 0 additions & 6 deletions packages/web/rollup.dev.js

This file was deleted.

0 comments on commit aeafee1

Please sign in to comment.