Y
Y
yarovikov2019-08-25 14:07:02
webpack
yarovikov, 2019-08-25 14:07:02

How to tell webpack to find all css files in subfolders?

Hi all. How not to write exact paths to css files? You just need to specify - find in such and such a folder in all css subfolders? Now here is such a hemorrhoids:

module.exports = {
  entry: {
    'blocks.css': [
      path.resolve(__dirname, 'template-parts/blocks/before-after/before-after.css'),
      path.resolve(__dirname, 'template-parts/blocks/columns/columns.css'),			
    ]
  },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Beetle, 2019-08-25
@Jukk

path.resolve(__dirname, 'template-parts/**/*.css),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question