Using Webpack To Transpile ES6 as separate files
问题 Is it possible to configure webpack to do the equivalent of: babel src --watch --out-dir lib So that a directory structure that looks like this: - src - alpha - beta.js - charlie - delta.js - echo.js - foxtrot - golf - hotel.js Would compile all the files to ES5 and output them in an identical structure under a lib directory: - lib - alpha - beta.js - charlie - delta.js - echo.js - foxtrot - golf - hotel.js I took a pass at globbing all the filepaths and passing them in as separate entries,