sunlonghb

506 经验值

module.exports = {

entry: ["./entry.js"],
output: {
    filename: "bundle.js"
},
module: {
    loaders: [
        {
            test: /\.css$/,
            loader:'style-loader!css-loader'
        },
        {
            test:/\.js?$/,
            exclude:/node_modules/,
            loader:'babel-loader',
            query:{
                presets:['es2015']
            }
        },
    ]
},

}