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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
69e49a09
Commit
69e49a09
authored
Apr 15, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only rewire in dev
parent
2f35ba98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
config/webpack.config.js
config/webpack.config.js
+3
-2
No files found.
config/webpack.config.js
View file @
69e49a09
...
...
@@ -15,6 +15,7 @@ var DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';
var
DEV_SERVER_PORT
=
parseInt
(
process
.
env
.
DEV_SERVER_PORT
,
10
)
||
3808
;
var
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'
false
'
;
var
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
var
rewirePlugin
=
IS_PRODUCTION
?
'
?plugins=rewire
'
:
''
;
var
config
=
{
context
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
),
...
...
@@ -52,7 +53,7 @@ var config = {
vue_pipelines
:
'
./vue_pipelines_index/index.js
'
,
raven
:
'
./raven/index.js
'
,
issue_show
:
'
./issue_show/index.js
'
,
group
:
'
./group.js
'
group
:
'
./group.js
'
,
},
output
:
{
...
...
@@ -68,7 +69,7 @@ var config = {
{
test
:
/
\.
js$/
,
exclude
:
/
(
node_modules|vendor
\/
assets
)
/
,
loader
:
'
babel-loader?plugins=rewire
'
,
loader
:
`babel-loader
${
rewirePlugin
}
`
,
},
{
test
:
/
\.
vue$/
,
...
...
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