mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Minor clean-up of environment var name in webpack config
This commit is contained in:
parent
35ae981c19
commit
7670f61cec
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
|
|
||||||
|
var environment = require('./src/environment.js');
|
||||||
var routes = require('./server/routes.json');
|
var routes = require('./server/routes.json');
|
||||||
var buildEnv = require('./src/environment.js');
|
|
||||||
|
|
||||||
// Prepare all entry points
|
// Prepare all entry points
|
||||||
var entry = {
|
var entry = {
|
||||||
|
@ -53,7 +54,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': buildEnv
|
'process.env': environment
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
compress: {
|
compress: {
|
||||||
|
|
Loading…
Reference in a new issue