Why didn't webpack url-loader load the image generate an object file?

the target file cannot be generated when webpack url-loader is used

related codes

this is the webpack.config.js code

var webpack = require ("webpack");
var ExtractTextPlugin = require ("extract-text-webpack-plugin");
var HtmlWebpackPlugin = require (" html-webpack-plugin");
/ / get processing of html-webpack-login template
var getHtmlConfig=function (name) {

return {
    filename: "view/"+name+".html",
    template: "./src/view/"+name+".html",
    inject: true,
    hash:true,
    chunks:["common",name]
}

}
var config = {

//  htmljs 
entry: {
    "common": ["./src/page/common/index.js"],
    "index": ["./src/page/index/index.js"],
    "login": ["./src/page/login/index.js"]
},
//
output: {
    path: __dirname + "/dist",//
    filename: "js/[name].js",//ck,
    publicPath: "./"
},
externals: {
    "jquery": "window.jQuery"
},
module: {
    loaders: [
        {
            test: /\.css$/,
            loader: ExtractTextPlugin.extract("style-loader","css-loader"),
        },
        {
            test: /\.(woff|woff2|eot|ttf|svg|jpg|png)(\?[a-z0-9]+)?$/,
            loader: "url-loader?limit:10&name=resource/[name].[ext]&outputPath=img/"
        },
    ]
},
plugins: [
    //js/base.js
    new webpack.optimize.CommonsChunkPlugin({
        name: "common",
        filename: "js/base.js"
    }),
    //css
    new ExtractTextPlugin("css/[name].css"),
    //html
    new HtmlWebpackPlugin(getHtmlConfig("index")),
    new HtmlWebpackPlugin(getHtmlConfig("login"))


],

};
module.exports = config;

this is the background image introduced by css
clipboard.png

The

project did not report an error, but did not generate the target file that it should have. There should be a resource file that holds the image. Many methods have been tried but to no avail. It"s been stuck for a long time.

Jul.12,2021

has been resolved, it should be a version problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea97d4-1f54.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea97d4-1f54.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?