1
Fork 0

Add static file pipeline

This commit is contained in:
Jake Howard 2020-04-12 16:15:46 +01:00
parent d850cd6aac
commit 8ae997e45f
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 6620 additions and 2 deletions

6609
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,9 +3,15 @@
"version": "1.0.0",
"private": true,
"description": "Another website, really?",
"scripts": {
"build": "parcel build --no-source-maps -d static/build static/src/scss/index.scss"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RealOrangeOne/website.git"
},
"homepage": "https://github.com/RealOrangeOne/website#readme"
"homepage": "https://github.com/RealOrangeOne/website#readme",
"dependencies": {
"parcel-bundler": "1.12.4"
}
}

View file

@ -15,4 +15,6 @@ fi
npm ci
npm run build
./manage.py collectstatic --noinput

View file

View file

@ -83,6 +83,9 @@ USE_TZ = True
STATIC_URL = "/static/"
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
STATIC_ROOT = os.path.join(BASE_DIR, "collected-static")
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static", "build"),
]
INTERNAL_IPS = [