Hey. I start working with Webpack and now my config looks like this:
'use strict'; var path = require("path"); module.exports = { entry: "./src/app.js", module: { loaders: [{ test: /.js$/, loader: 'babel-loader', exclude: /node_modules/, query: { presets: ['es2015'] } }] }, output: { path: path.resolve(__dirname, '../assets/js/'), filename: 'app.js' } }; In this case, the app.js file is taken from the /dev/src/ app.js , transported to ES5 using the babel-loader and sent to the /assets/js/app.js folder. But I still have the folder /dev/src/js-modules/ , which contains various js-modules that I downloaded from various sources. I don’t really like the require() ideology of Node modules, so I just want to collect all the js files from the /dev/src/js-modules/ folder into one file and send it along the path /assets/js/modules.js . How to do it?