File tree Expand file tree Collapse file tree 9 files changed +11
-18
lines changed Expand file tree Collapse file tree 9 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,3 @@ db.sqlite3
56
56
57
57
# Django
58
58
staticfiles /
59
-
60
- # Static files
61
- static /js /anthias.js *
62
- static /js /settings.js *
63
- static /css /anthias.css *
Original file line number Diff line number Diff line change @@ -38,11 +38,8 @@ WORKDIR /usr/src/app
38
38
39
39
{% if environment == 'production' %}
40
40
COPY --from=node-builder \
41
- /app/static/css/ \
42
- /usr/src/app/static/css/
43
- COPY --from=node-builder \
44
- /app/static/js/*.js* \
45
- /usr/src/app/static/js/
41
+ /app/static/dist/ \
42
+ /usr/src/app/static/dist/
46
43
{% endif %}
47
44
48
45
ENV GIT_HASH={{ git_hash }}
Original file line number Diff line number Diff line change 23
23
< script src ="/static/js/bootstrap-datepicker.js "> </ script >
24
24
< script src ="/static/js/bootstrap-timepicker.js "> </ script >
25
25
< script src ="/static/js/moment.js "> </ script >
26
- < script src ="../js/anthias.js "> </ script >
26
+ < script src ="../dist/ js/anthias.js "> </ script >
27
27
28
28
</ head >
29
29
Original file line number Diff line number Diff line change 32
32
<meta content =" /static/favicons/mstile-310x150.png" name =" msapplication-wide310x150logo" />
33
33
<meta content =" /static/favicons/mstile-310x310.png" name =" msapplication-square310x310logo" />
34
34
35
- <link href =" {% static 'css/anthias.css' %}" type =" text/css" rel =" stylesheet" />
35
+ <link href =" {% static 'dist/ css/anthias.css' %}" type =" text/css" rel =" stylesheet" />
36
36
37
37
<link href =" {% static 'fontawesome/css/all.css' %}" rel =" stylesheet" />
38
38
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 "/>
5
5
< title > Hotspot Page</ title >
6
- < link href ="/static/css/anthias.css " rel ="stylesheet "/>
6
+ < link href ="/static/dist/ css/anthias.css " rel ="stylesheet "/>
7
7
< link href ="https://fonts.googleapis.com/css?family=Plus Jakarta Sans " rel ="stylesheet ">
8
8
< link rel ="icon " href ="/static/favicons/favicon.ico ">
9
9
< style type ="text/css ">
Original file line number Diff line number Diff line change 35
35
var wsAddresses = JSON .parse (document .getElementById (' ws_addresses' ).textContent );
36
36
</script >
37
37
38
- <script src =" {% static 'js/anthias.js' %}" ></script >
38
+ <script src =" {% static 'dist/ js/anthias.js' %}" ></script >
39
39
<script src =" {% static 'js/main.js' %}" ></script >
40
40
41
41
<script id =" asset-row-template" type =" text/template" >
Original file line number Diff line number Diff line change 11
11
<script src =" {% static 'js/jquery.fileupload.js' %}" ></script > <!-- needs jqueryui.widget -->
12
12
<script src =" {% static 'js/bootstrap-datepicker.js' %}" ></script >
13
13
14
- <script src =" {% static 'js/settings.js' %}" ></script >
14
+ <script src =" {% static 'dist/ js/settings.js' %}" ></script >
15
15
{% endblock %}
16
16
17
17
{% block content %}
Original file line number Diff line number Diff line change 6
6
{% load static %}
7
7
<meta charset =" utf-8" />
8
8
<title >Welcome to Anthias</title >
9
- <link href =" {% static 'css/anthias.css' %}" rel =" stylesheet" />
9
+ <link href =" {% static 'dist/ css/anthias.css' %}" rel =" stylesheet" />
10
10
<link href =" https://fonts.googleapis.com/css?family=Plus Jakarta Sans" rel =" stylesheet" >
11
11
<link rel =" icon" href =" /static/favicons/favicon.ico" >
12
12
<style type =" text/css" >
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ module.exports = {
7
7
"settings" : "./static/js/settings.coffee" ,
8
8
} ,
9
9
output : {
10
- path : path . resolve ( __dirname , "static" ) ,
11
- filename : "js/[name].js"
10
+ path : path . resolve ( __dirname , "static/dist" ) ,
11
+ filename : "js/[name].js" ,
12
+ clean : true ,
12
13
} ,
13
14
plugins : [
14
15
new MiniCssExtractPlugin ( {
You can’t perform that action at this time.
0 commit comments