mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Don't require dev dependencies in production
This commit is contained in:
parent
358a5acf97
commit
8bc3e5e2a5
1 changed files with 2 additions and 2 deletions
|
@ -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') {
|
||||||
|
|
||||||
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: {
|
||||||
|
|
Loading…
Reference in a new issue