可以使用exclude
{ module: { loaders: [{ test: /\.js$/, loader: 'babel-loader', include: [ path.resolve(__dirname, "app/src"), path.resolve(__dirname, "app/test") ], exclude: /node_modules/ }] } }
繁花不似锦
相关分类