build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/sysmanage/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist/sysmanage'),
assetsSubDirectory: 'static',
/**
* You can set by youself according to actual condition
* You will need to set this if you plan to deploy your site under a sub path,
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then assetsPublicPath should be set to "/bar/".
* In most cases please use '/' !!!
*/
assetsPublicPath: '/sysmanage/',
修改config/index.js文件
index: 生成的index目录。 assetsRoot: 编译文件根目录。 assetsSubDirectory: 资源文件目录 assetsPublicPath: 打包后资源文件路径前缀。
修改webpack.prod.conf.js