Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Commit d8d6ce3

Browse files
committed
Fix prod build settings
1 parent a6bb7da commit d8d6ce3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ gulp.task('clean', function(cb) {
1717

1818
gulp.task("webpack", function () {
1919
return gulp.src('src/Index.js')
20-
.pipe(webpack( require('./webpack-dev.config.js') ))
21-
.pipe(gulp.dest('build/'));
20+
.pipe(webpack( require('./webpack-prod.config.js') ))
21+
.pipe(gulp.dest('dist/'));
2222
});
2323

2424
// The js task could be replaced with gulp-coffee as desired.
2525
gulp.task("js", function () {
2626
return gulp
27-
.src("build/Index.js")
27+
.src("dist/Index.js")
2828
.pipe(gulp.dest("dist/"));
2929
});
3030

make-webpack-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function(options) {
2828
"/assets/";
2929

3030
var output = {
31-
path: path.join(__dirname, "build"),
31+
path: path.join(__dirname, "dist"),
3232
publicPath,
3333
filename: "[name].js",
3434
chunkFilename: options.devServer ? "[id].js" : "[name].js",

scripts/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
try {
22
var lambda = require('../dist/Index.js');
33

4-
process.chdir('./build');
4+
process.chdir('./dist');
55

66
var context = {
77
succeed: function(data) {

0 commit comments

Comments
 (0)