Add static file pipeline
This commit is contained in:
parent
d850cd6aac
commit
8ae997e45f
5 changed files with 6620 additions and 2 deletions
6609
package-lock.json
generated
6609
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,6 @@ fi
|
|||
|
||||
npm ci
|
||||
|
||||
npm run build
|
||||
|
||||
./manage.py collectstatic --noinput
|
||||
|
|
0
static/src/scss/index.scss
Normal file
0
static/src/scss/index.scss
Normal 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 = [
|
||||
|
|
Reference in a new issue