webpack-mobile.config.js 417 B

12345678910111213141516
  1. const path = require('path');
  2. const assetPath = require('./src/services/asset_path');
  3. module.exports = {
  4. mode: 'production',
  5. entry: {
  6. mobile: './src/public/app/mobile.js',
  7. },
  8. output: {
  9. publicPath: `${assetPath}/app-dist/`,
  10. path: path.resolve(__dirname, 'src/public/app-dist'),
  11. filename: 'mobile.js'
  12. },
  13. devtool: 'source-map',
  14. target: 'electron-renderer'
  15. };