base-webpack.config.js 356 B

12345678910111213141516171819202122
  1. const path = require('path');
  2. const packageName = require('../package.json').name;
  3. const config = {
  4. output: {
  5. filename: '[name].js'
  6. },
  7. resolve: {
  8. alias: {
  9. [packageName]: path.resolve(__dirname, '..')
  10. }
  11. },
  12. resolveLoader: {
  13. alias: {
  14. [packageName]: path.resolve(__dirname, '..')
  15. }
  16. }
  17. };
  18. module.exports = config;