Include a folder from excluded folder in webpack -


i have repository has sub-repository , want make build webpack.

the structure of main repository this:

├── assets ├── node_modules └── src     ├── components     │   ├── config     │   ├── node_modules     │   └── src     ├── index.jsx     └── pages 

i want make build main/src folder , components/src inside it. want src folder of sub-repository config not work.

  {     test: /\.(js|jsx)$/,     exclude: [resolve(__dirname, '../src/components')],     include: [        resolve(__dirname, '../src'),        resolve(__dirname, '../src/components/src'),     ],     use: 'babel-loader',   }, 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -