Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f47357fc
Commit
f47357fc
authored
Aug 20, 2021
by
ioedeveloper
Committed by
yann300
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable react production build
parent
604b62b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
22 deletions
+43
-22
webpack.config.js
apps/debugger/webpack.config.js
+21
-11
webpack.config.js
apps/remix-ide/webpack.config.js
+21
-11
package-lock.json
package-lock.json
+0
-0
package.json
package.json
+1
-0
No files found.
apps/debugger/webpack.config.js
View file @
f47357fc
const
nxWebpack
=
require
(
'@nrwl/react/plugins/webpack'
)
const
TerserPlugin
=
require
(
'terser-webpack-plugin'
)
module
.
exports
=
config
=>
{
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
productionConfig
=
process
.
env
.
NODE_ENV
===
'production'
?
{
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
:
{}
return
{
...
nxWebpackConfig
,
node
:
{
fs
:
'empty'
,
tl
s
:
'empty'
,
readline
:
'empty'
,
net
:
'empty'
,
module
:
'empty'
,
child_process
:
'empty'
}
return
{
...
nxWebpackConfig
,
...
productionConfig
,
node
:
{
f
s
:
'empty'
,
tls
:
'empty'
,
readline
:
'empty'
,
net
:
'empty'
,
module
:
'empty'
,
child_process
:
'empty'
}
}
}
apps/remix-ide/webpack.config.js
View file @
f47357fc
const
nxWebpack
=
require
(
'@nrwl/react/plugins/webpack'
)
const
TerserPlugin
=
require
(
'terser-webpack-plugin'
)
module
.
exports
=
config
=>
{
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
productionConfig
=
process
.
env
.
NODE_ENV
===
'production'
?
{
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
:
{}
return
{
...
nxWebpackConfig
,
node
:
{
fs
:
'empty'
,
tl
s
:
'empty'
,
readline
:
'empty'
,
net
:
'empty'
,
module
:
'empty'
,
child_process
:
'empty'
}
return
{
...
nxWebpackConfig
,
...
productionConfig
,
node
:
{
f
s
:
'empty'
,
tls
:
'empty'
,
readline
:
'empty'
,
net
:
'empty'
,
module
:
'empty'
,
child_process
:
'empty'
}
}
}
package-lock.json
View file @
f47357fc
This diff is collapsed.
Click to expand it.
package.json
View file @
f47357fc
...
...
@@ -285,6 +285,7 @@
"
swarmgw
"
:
"^0.3.1"
,
"
tap-spec
"
:
"^5.0.0"
,
"
tape
"
:
"^4.13.3"
,
"
terser-webpack-plugin
"
:
"^4.2.3"
,
"
ts-jest
"
:
"25.2.1"
,
"
ts-node
"
:
"^7.0.1"
,
"
tslint
"
:
"~6.0.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment