-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customization: css #5
Comments
Made to work in debug mode. Steps to follow:
from invenio_app.config import APP_DEFAULT_SECURE_HEADERS
APP_DEFAULT_SECURE_HEADERS['content_security_policy'] = {}
WEBPACKEXT_STORAGE_CLS = 'pywebpack.storage.LinkStorage'
var webpackConfig = {
...
resolve: {
...
symlinks: false
},
...
}
function DirectoryWatcher(directoryPath, options) {
...
this.watcher = chokidar.watch(directoryPath, {
...
followSymlinks: true,
./scripts/bootstrap
./scripts/setup
invenio run --cert ./docker/nginx/test.t --key ./docker/nginx/test.key
invenio webpack run start Starting implementing the changes in the correct places. Kudos @slint for the guidelines and work :) |
Since it's not sure if more changes are coming, I've made the |
@slint Thanks! I added a comment here: inveniosoftware/invenio-assets@094c1ef The most problematic might be point 4.
While searching for the option I did not find it. So I guess it is fixed somehow different in webpack 5 (I'll keep investigating) Thoughts? |
For making it work on macos I had to change unfortunately another line in the function DirectoryWatcher(directoryPath, options) {
...
this.watcher = chokidar.watch(directoryPath, {
...
followSymlinks: true,
depth: 1, Seems that on macos if you don't increase the depth of the traversed subdirectories changes are not detected. I have opened a ticket webpack/watchpack#141 to understand if this is something is known and fixed in the latest beta version. |
Isn't this solved by #59 ? |
@lnielsen if we move the information on how to you can make webpack work locally in another issue this one can be closed! I will create an issue and I will close it! |
Created this #65 out of the information here! |
Support loading/adding custom CSS
The text was updated successfully, but these errors were encountered: