-1
は、ここに私のWebPACK 2設定です:WebPACKの2予期しないトークン輸入
const path = require('path')
const webpack = require('webpack');
module.exports = {
entry: "./js/app.js",
output: {
path: path.resolve(__dirname, "dist"),
publicPath: "/dist/",
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [{
loader: 'babel-loader',
options: {
presets: ['es2015']
}
}]
},
],
},
devServer: {
headers: { "Access-Control-Allow-Origin": "http://localhost:8000", "Access-Control-Allow-Credentials": "true" }
}
};
は私のWebPACKの設定に何か問題はありますか? 私の出力バンドルはES2015に移行しません。
完全なエラーを投稿してください – loganfsmyth