Skip to content

Commit c754a3c

Browse files
committed
#553 feat: Remove refs to node_modules for icons css
1 parent 5fbe78f commit c754a3c

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

webapp/geppetto.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
<% } %>
1919

2020
<!-- CSS -->
21-
<link rel="stylesheet" href="<%= cssPaths%>geppetto/node_modules/@metacell/geppetto-meta-client/style/css/font-awesome.min.css"/>
21+
<link rel="stylesheet" href="geppetto/build/static/css/font-awesome.min.css"/>
2222
<link rel="stylesheet" href="<%= cssPaths%>geppetto/node_modules/@metacell/geppetto-meta-client/style/css/codemirror.css"/>
2323
<link rel="stylesheet" href="<%= cssPaths%>geppetto/node_modules/@metacell/geppetto-meta-client/style/css/lesser-dark.css"/>
24-
<link rel="stylesheet" href="<%= cssPaths%>geppetto/node_modules/@metacell/geppetto-meta-client/style/css/gpt-icons.css"/>
25-
24+
<link rel="stylesheet" href="geppetto/build/static/css/gpt-icons.css"/>
25+
2626
<% if(htmlWebpackPlugin.options.GEPPETTO_CONFIGURATION.properties.icon.indexOf("http") !== -1){ %>
2727
<link rel="icon" type="image/png" href="<%=htmlWebpackPlugin.options.GEPPETTO_CONFIGURATION.properties.icon%>"/>
2828
<% } else{ %>
2929
<link rel="icon" type="image/png" href="<%= cssPaths%><%=htmlWebpackPlugin.options.GEPPETTO_CONFIGURATION.properties.icon%>"/>
3030
<% } %>
31-
31+
3232
</head>
3333
<body style="margin: 0px">
3434

webapp/webpack.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ if (isWin) {
3434
}
3535

3636
const availableExtensions = [
37+
{
38+
from: path.resolve(__dirname, geppettoClientPath, 'style/css/font-awesome.min.css'),
39+
to: 'static/css',
40+
flatten: true,
41+
},
42+
{
43+
from: path.resolve(__dirname, geppettoClientPath, 'style/css/gpt-icons.css'),
44+
to: 'static/css',
45+
flatten: true,
46+
},
3747
{
3848
from: path.resolve(__dirname, geppettoClientPath, 'static/*'),
3949
to: 'static',
@@ -58,6 +68,7 @@ const availableExtensions = [
5868
from: path.resolve(__dirname, 'static'),
5969
to: 'static',
6070
},
71+
6172
];
6273

6374
module.exports = function (env) {

0 commit comments

Comments
 (0)