-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace django-compress with webpack
- Loading branch information
Showing
65 changed files
with
1,537 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
last 2 versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,3 +131,5 @@ dmypy.json | |
.idea/ | ||
/media/ | ||
/static/ | ||
assets/webpack_bundles/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "wwwsfi", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"repository": "https://git.sfi.pl/scm/www/wwwsfi.git", | ||
"author": "SFI IT Academic Festival <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"dev": "webpack --mode development --watch", | ||
"build": "webpack --mode production" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^10.0.4", | ||
"browserslist": "^4.14.7", | ||
"css-loader": "^5.0.1", | ||
"file-loader": "^6.2.0", | ||
"mini-css-extract-plugin": "^1.3.1", | ||
"postcss": "^8.1.10", | ||
"postcss-loader": "^4.1.0", | ||
"sass": "^1.29.0", | ||
"sass-loader": "^10.1.0", | ||
"style-loader": "^2.0.0", | ||
"webpack": "^5.9.0", | ||
"webpack-bundle-tracker": "^0.4.3", | ||
"webpack-cli": "^4.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
autoprefixer: {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
Django>=3.1.2,<3.2 | ||
wagtail>=2.10.2,<2.11 | ||
-e git+https://github.com/sfikrakow/django-sfibase.git@5dfb2f269c791144304ac433f8aa4d03a9b9ac7c#egg=django_sfibase | ||
django_compressor>=2.4,<2.5 | ||
django-libsass==0.8 | ||
Brotli>=1.0.9,<1.1 | ||
beautifulsoup4<4.9,>=4.8 | ||
closure==20191111 | ||
django-modeltranslation>=0.15.2,<0.16 | ||
wagtail-modeltranslation>=0.10.14,<0.11.0 | ||
django-livereload-server==0.3.2 | ||
django-redis>=4.12.1,<4.13 | ||
numpy>=1.19.2,<1.20 | ||
opencv-contrib-python-headless>=4.4.0.44,<4.4.1 | ||
django-recaptcha==2.0.6 | ||
django-webpack-loader==0.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"status":"done","publicPath":"/static/webpack_bundles/","chunks":{"js":[{"name":"js-a7548d7674df88236a0a.js","publicPath":"/static/webpack_bundles/js-a7548d7674df88236a0a.js","path":"/home/adam/PycharmProjects/wwwsfi/assets/webpack_bundles/js-a7548d7674df88236a0a.js"}],"css":[{"name":"css-a7548d7674df88236a0a.css","publicPath":"/static/webpack_bundles/css-a7548d7674df88236a0a.css","path":"/home/adam/PycharmProjects/wwwsfi/assets/webpack_bundles/css-a7548d7674df88236a0a.css"},{"name":"css-a7548d7674df88236a0a.js","publicPath":"/static/webpack_bundles/css-a7548d7674df88236a0a.js","path":"/home/adam/PycharmProjects/wwwsfi/assets/webpack_bundles/css-a7548d7674df88236a0a.js"}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const BundleTracker = require('webpack-bundle-tracker'); | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | ||
|
||
module.exports = { | ||
context: __dirname, | ||
entry: { | ||
js: './assets/js/main.js', | ||
css: './assets/sass/main.scss' | ||
}, | ||
output: { | ||
path: path.resolve('./assets/webpack_bundles/'), | ||
publicPath: "/static/webpack_bundles/", | ||
filename: "[name]-[hash].js" | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(sa|sc|c)ss$/, | ||
use: [ | ||
MiniCssExtractPlugin.loader, | ||
{loader: 'css-loader', options: {sourceMap: true}}, | ||
'postcss-loader', | ||
'sass-loader' | ||
] | ||
}, | ||
{ | ||
test: /\.(png|jpe?g|gif)$/i, | ||
use: [ | ||
{ | ||
loader: 'file-loader', | ||
}, | ||
], | ||
}, | ||
] | ||
}, | ||
plugins: [ | ||
new BundleTracker({filename: './webpack-stats.json'}), | ||
new MiniCssExtractPlugin({filename: "[name]-[hash].css"}) | ||
] | ||
} |
Oops, something went wrong.