12345678910111213141516171819202122232425262728293031323334353637383940 |
- const path = require('path');
- function resolve (dir) {
- return path.join(__dirname, dir);
- }
- module.exports = {
- publicPath: './',
- devServer: {
-
- host: '0.0.0.0',
- port: 8080
- },
- chainWebpack: config => {
- config.resolve.alias
- .set('@', resolve('src'))
- .set('src', resolve('src'))
- .set('common', resolve('src/common'))
- .set('components', resolve('src/components'));
- },
- pluginOptions: {
- electronBuilder: {
- builderOptions: {
- win: {
- icon: './public/iscm.ico'
- },
- mac: {
- icon: './public/iscm.png'
- },
-
- productName: 'iSCM-预发布环境',
-
- nsis: {
- "oneClick": false,
- "allowToChangeInstallationDirectory": true,
- },
- }
- }
- }
- };
|