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', () => { ...@@ -33,7 +33,7 @@ gulp.task('scss', () => {
gulp.task('webpack', () => { gulp.task('webpack', () => {
return gulp.src(pkg.main) return gulp.src(pkg.main)
.pipe($.webpack_stream()) .pipe($.webpack_stream( require('./webpack.config.js') ))
.pipe(gulp.dest(pkg.paths.dist.js)); .pipe(gulp.dest(pkg.paths.dist.js));
}); });
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"author": "Lars Bilke", "author": "Lars Bilke",
"license": "BSD", "license": "BSD",
"scripts": { "scripts": {
"hugo": "hugo -w --disableRSS",
"build": "webpack", "build": "webpack",
"build:release": "export NODE_ENV=production && webpack -p", "build:release": "export NODE_ENV=production && webpack -p",
"start": "webpack-dev-server --content-base ./public" "start": "webpack-dev-server --content-base ./public"
......
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
plugins: plugins, plugins: plugins,
entry: pkg.paths.src.js + '/app.js', entry: pkg.paths.src.js + '/app.js',
output: { output: {
path: pkg.paths.dist.js, // path: pkg.paths.dist.js, // does not work with webpack-stream
filename: 'bundle.js', filename: 'bundle.js',
}, },
module: { 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