Skip to content

Commit 43b5d40

Browse files
committed
fix webpack example-server path var
1 parent f4fb18f commit 43b5d40

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: gulpfile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ gulp.task('umdBuild', ['clean'], shell.task([
6363
// -----------
6464
gulp.task('example-server', function() {
6565

66-
new WebpackDevServer(webpack(config), {
67-
publicPath: config.serverConfig.publicPath,
68-
contentBase: config.serverConfig.contentBase,
66+
new WebpackDevServer(webpack(exampleConfig), {
67+
publicPath: exampleConfig.serverConfig.publicPath,
68+
contentBase: exampleConfig.serverConfig.contentBase,
6969
hot: true,
7070
headers: {
7171
'Access-Control-Allow-Origin': '*'
7272
},
7373
historyApiFallback: true
74-
}).listen(config.serverConfig.port, 'localhost', function(err, result) {
74+
}).listen(exampleConfig.serverConfig.port, 'localhost', function(err, result) {
7575
if (err) {
7676
console.log(err);
7777
}

Diff for: webpack.umd.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
// You can do this easily using the following setup:
1010

11-
// - Add the umd (or dist) directory to your .gitignore file
12-
// - Add the umd directory to your files array in package.json
13-
// - Use a build script to generate your UMD build in the umd directory just before you publish
11+
// - Add the umd (or dist in this case) directory to your .gitignore file
12+
// - Add the dist directory to your files array in package.json
13+
// - Use a build script to generate your UMD build in the dist directory just before you publish
1414
// - That's it! Now when you npm publish you'll have a version available on npmcdn as well
1515

1616
var path = require('path');

0 commit comments

Comments
 (0)