webpack.config.js无法识别ES6语法
webpack.config.js无法识别ES6语法 代码如下:webpack.config.js无法识别ES6语法,webpack,ecmascript-6,Webpack,Ecmascript 6,webpack.config.js无法识别ES6语法 代码如下: devServer: { ...webpackDevServerProxy(proxyConfig), historyApiFallback: true, port: 3000 } throw error: ...webpackDevServerProxy(proxyConfig), ^^^ SyntaxError: Unexpected token ... 您可能需要使用babel
devServer: {
...webpackDevServerProxy(proxyConfig),
historyApiFallback: true,
port: 3000
}
throw error:
...webpackDevServerProxy(proxyConfig),
^^^
SyntaxError: Unexpected token ...
您可能需要使用babel之类的工具来传输配置文件