Created
July 11, 2018 18:18
-
-
Save Kronuz/ac406b1b43bcca7d44622a2db50f853b to your computer and use it in GitHub Desktop.
Trying to reproduce https://github.com/ztoben/assets-webpack-plugin/issues/92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = "Exported"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gulp = require('gulp'); | |
const webpack = require('webpack'); | |
const webpackStream = require('webpack-stream'); | |
const webpackConfig = require('./webpack.config'); | |
gulp.task('default', () => { | |
return gulp.src('./app.js') | |
.pipe(webpackStream(webpackConfig, webpack)) | |
.pipe(gulp.dest('dist/')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "assets-webpack-bug", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"assets-webpack-plugin": "3.8.4-alpha.0", | |
"gulp": "4.0.0", | |
"webpack": "4.12.0", | |
"webpack-cli": "3.0.6", | |
"webpack-merge": "4.1.3", | |
"webpack-stream": "4.0.3" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
mode: "development" | |
} |
I can reproduce the error running ./node_modules/.bin/gulp
on Node.js version 8.11.3
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Kronuz The webpack configuration is missing the assets plugin: