Skip to content
Snippets Groups Projects
Commit db4a2f9c authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[web] Run webpack with gulp.

parent 13bfb71c
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ gulp.task('scss', () => {
gulp.task('webpack', () => {
return gulp.src(pkg.main)
.pipe($.webpack_stream())
.pipe($.webpack_stream( require('./webpack.config.js') ))
.pipe(gulp.dest(pkg.paths.dist.js));
});
......
......@@ -6,6 +6,7 @@
"author": "Lars Bilke",
"license": "BSD",
"scripts": {
"hugo": "hugo -w --disableRSS",
"build": "webpack",
"build:release": "export NODE_ENV=production && webpack -p",
"start": "webpack-dev-server --content-base ./public"
......
......@@ -17,7 +17,7 @@ module.exports = {
plugins: plugins,
entry: pkg.paths.src.js + '/app.js',
output: {
path: pkg.paths.dist.js,
// path: pkg.paths.dist.js, // does not work with webpack-stream
filename: 'bundle.js',
},
module: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment