Skip to content

Commit

Permalink
chore(dependent-project): fix errors in webpack config
Browse files Browse the repository at this point in the history
Thanks to Gergely Csucs (github user Tevemadar) for identifying the problem and providing an initial
fix.
  • Loading branch information
jbms committed Dec 11, 2017
1 parent d37ca37 commit 80c4854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/dependent-project/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ const webpack_helpers = require('./webpack_helpers');
module.exports = env => {
env = env || 'dev';
return webpack_helpers.getViewerConfigFromEnv(
{outputPath: path.resolve(__dirname, '../dist/' + outputSuffix)}, env);
{outputPath: path.resolve(__dirname, '../dist/' + env)}, env);
};
6 changes: 3 additions & 3 deletions examples/dependent-project/config/webpack_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

const path = require('path');
const original_webpack_helpers = require('neuroglancer/config/webpack_helpers');
const originalWebpackHelpers = require('neuroglancer/config/webpack_helpers');
const resolveReal = require('neuroglancer/config/resolve_real');

function modifyViewerOptions(options) {
Expand All @@ -40,6 +40,6 @@ function modifyViewerOptions(options) {
return options;
}

exports.getViewerConfig = function(options) {
return original_webpack_helpers.getViewerConfig(modifyViewerOptions(options));
exports.getViewerConfigFromEnv = function(options, env) {
return originalWebpackHelpers.getViewerConfigFromEnv(modifyViewerOptions(options), env);
};

0 comments on commit 80c4854

Please sign in to comment.