django-webpack-loader icon indicating copy to clipboard operation
django-webpack-loader copied to clipboard

How to copy only 'public' dir of my assets dir when i run collectstatic?

Open marcosfromrio opened this issue 6 years ago • 0 comments

i have the dir and files in my npm root project: > ls assets node_modules package-lock.json package.json postcss.config.js public src webpack-stats.json webpack.config.js

and when i run collectstatic: > ls static package-lock.json package.json postcss.config.js public src webpack-stats.json webpack.config.js

i want that this copy only the public dir, that contains my jss and css that will be used in django

my settings.py:

from pathlib import Path BASE_DIR = Path(file).parents[1]

WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': not DEBUG, 'BUNDLE_DIR_NAME': 'public/', # must end with slash 'STATS_FILE': BASE_DIR.joinpath('webpack-stats.json'), 'POLL_INTERVAL': 0.1, 'TIMEOUT': None, 'IGNORE': [r'.+.hot-update.js', r'.+.map'] } }

marcosfromrio avatar Apr 11 '19 19:04 marcosfromrio