Skip to content

Commit

Permalink
[gulp] dist 빌드
Browse files Browse the repository at this point in the history
  • Loading branch information
woowa committed Jul 31, 2016
1 parent f5d2b6d commit fa78be6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
17 changes: 9 additions & 8 deletions dist/woowahan.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ gulp.task('scripts', () => {
.pipe(gulp.dest(path.resolve(__dirname, 'lib')));

gulp.src(webpackConfig.entry)
.pipe($.plumber())
.pipe($.webpackStream(webpackConfig))
.pipe($.plumber.stop())
.pipe(gulp.dest(path.resolve(__dirname, 'dist')));
});

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./src/woowahan');
module.exports = require('./lib/woowahan');
1 change: 1 addition & 0 deletions webpack-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./src/woowahan');
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var webpack = require('webpack');
var entry = './index.js';

var entry = './webpack-index.js';

var output = {
path: __dirname,
filename: 'woowahan.js'
Expand All @@ -17,6 +19,7 @@ var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin({

module.exports = {
debug: false,
devtool: 'cheap-module-eval-source-map',
entry: entry,
output: output,
module : {
Expand Down

0 comments on commit fa78be6

Please sign in to comment.