Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Webpack 找不到网页包localhost/sockjs.js.map_Webpack_Webpack Dev Server - Fatal编程技术网

Webpack 找不到网页包localhost/sockjs.js.map

Webpack 找不到网页包localhost/sockjs.js.map,webpack,webpack-dev-server,Webpack,Webpack Dev Server,关于socks.js.map,我有以下错误,有人能帮我吗 加载资源失败:服务器响应状态为404(未找到) 我安装了webpack和webpack dev服务器的最新版本,并将其配置为: const webpack = require('webpack'); module.exports = { entry : './index.js', output : { path: __dirname + '/public', filename : './b

关于socks.js.map,我有以下错误,有人能帮我吗

加载资源失败:服务器响应状态为404(未找到)

我安装了webpack和webpack dev服务器的最新版本,并将其配置为:

const webpack = require('webpack');

module.exports = {
    entry : './index.js',
    output : {
        path: __dirname + '/public',
        filename : './bundle.js'
    },
    devServer: {
        port: 8080,
        contentBase: './public'
    },
    module: {
        loaders: [{
            test: /.js?$/,
            loader: 'babel-loader',
            exclude: /node-modules/,
            query: {
                presets : ['es2015']
            }
        }]
    }

}
My package.json包含一个脚本:

"dev": "webpack-dev-server --progress --colors --inline --hot"