Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7ab73173
Commit
7ab73173
authored
Oct 02, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make DefinePlugin definitions more specific
parent
5f53269f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
config/karma.config.js
config/karma.config.js
+2
-3
No files found.
config/karma.config.js
View file @
7ab73173
...
@@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false;
...
@@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false;
// use quicker sourcemap option
// use quicker sourcemap option
webpackConfig
.
devtool
=
'
cheap-inline-source-map
'
;
webpackConfig
.
devtool
=
'
cheap-inline-source-map
'
;
// set BABEL_ENV to indicate when we're running code coverage
webpackConfig
.
plugins
.
push
(
webpackConfig
.
plugins
.
push
(
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'
process.env
'
:
{
'
process.env.BABEL_ENV
'
:
JSON
.
stringify
(
process
.
env
.
BABEL_ENV
||
process
.
env
.
NODE_ENV
||
null
),
BABEL_ENV
:
JSON
.
stringify
(
process
.
env
.
BABEL_ENV
||
process
.
env
.
NODE_ENV
||
null
),
},
})
})
);
);
...
...
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