I need to webpack all the js file in the script folder.I tried this
module.exports = {
module: {
loaders: [
{
test: /\\.js$/,
ex
Webpack is expecting a list of files for the entry configuration, not a glob pattern.
You'll have to list the files manually, or automatically with this code snippet
var fs = require('fs'),
entries = fs.readdirSync('./src/scripts/').filter(function(file) {
return file.match(/.*\.js$/);
});
and then pass it to webpack's config.