webpack.config.js 471 B

12345678910111213141516171819
  1. const path = require('path');
  2. const config = {
  3. // The first source file from which to build the import tree.
  4. entry: './src/index.js',
  5. // The location and names of the built files (bundles).
  6. output: {
  7. path: path.resolve(__dirname, 'dist'),
  8. filename: 'bundle.js',
  9. },
  10. // What loaders need to be used to build non-JS files.
  11. module: {
  12. rules: [],
  13. },
  14. // What code should run to tweak the build process.
  15. plugins: [],
  16. };
  17. module.exports = config;