Webpack package image path



is there any other configuration?
what should I do if I generate more paths from npm run build than / static/css,?

Mar.22,2021
For the project generated by

vue-cli, you only need to add a point in the assetsPublicPath to pack the project. It is not a problem for you to post a bad judgment on which place has been added. You can generate a vue-cli for your own comparison.


test: /. (png | jpe?g | gif | svg) (?. *)? $/,

    loader: 'url-loader',
    options: {
      limit: 1,
      name: utils.assetsPath('images/[name].[hash:7].[ext]'),
      publicPath: '../../'
    }
    
Menu