Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
8bc3e5e2
Commit
8bc3e5e2
authored
Mar 31, 2016
by
Ray Schamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't require dev dependencies in production
parent
358a5acf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/index.js
server/index.js
+2
-2
No files found.
server/index.js
View file @
8bc3e5e2
...
@@ -7,8 +7,6 @@ var express = require('express');
...
@@ -7,8 +7,6 @@ var express = require('express');
var
path
=
require
(
'
path
'
);
var
path
=
require
(
'
path
'
);
var
proxy
=
require
(
'
express-http-proxy
'
);
var
proxy
=
require
(
'
express-http-proxy
'
);
var
url
=
require
(
'
url
'
);
var
url
=
require
(
'
url
'
);
var
webpackDevMiddleware
=
require
(
'
webpack-dev-middleware
'
);
var
webpack
=
require
(
'
webpack
'
);
var
handler
=
require
(
'
./handler
'
);
var
handler
=
require
(
'
./handler
'
);
var
log
=
require
(
'
./log
'
);
var
log
=
require
(
'
./log
'
);
...
@@ -72,6 +70,8 @@ if (typeof process.env.NODE_SENTRY_DSN === 'string') {
...
@@ -72,6 +70,8 @@ if (typeof process.env.NODE_SENTRY_DSN === 'string') {
if
(
!
isProduction
)
{
if
(
!
isProduction
)
{
// Use webpack-dev-server in development
// Use webpack-dev-server in development
var
webpackDevMiddleware
=
require
(
'
webpack-dev-middleware
'
);
var
webpack
=
require
(
'
webpack
'
);
var
compiler
=
webpack
(
require
(
'
../webpack.config.js
'
));
var
compiler
=
webpack
(
require
(
'
../webpack.config.js
'
));
app
.
use
(
webpackDevMiddleware
(
compiler
,
{
app
.
use
(
webpackDevMiddleware
(
compiler
,
{
headers
:
{
headers
:
{
...
...
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