app config exclude node_modules instead of include src directory

This commit is contained in:
NikolaBorislavovHristov 2019-07-19 15:40:41 +03:00
parent ea55d445ac
commit 5525a37f07

View file

@ -14,8 +14,8 @@ module.exports = {
rules: [ rules: [
{ {
test: /\.js$/, test: /\.js$/,
include: [ exclude: [
path.resolve(__dirname, 'src') path.resolve(__dirname, 'node_modules')
], ],
use: { use: {
loader: 'babel-loader', loader: 'babel-loader',