Skip to content

Commit

Permalink
Fix tippy js css in production
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoko committed Dec 29, 2020
1 parent 46b96bd commit a407b3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions site/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { render } from 'github-buttons'

import tippy from 'tippy.js';

import '../../node_modules/tippy.js/dist/tippy.css'
import '../sass/main.scss';

library.add(faDownload, faGithub, faCode, faEllipsisH, faAngleLeft, faAngleRight);
Expand Down
2 changes: 1 addition & 1 deletion site/assets/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import 'variables';

@import '../../node_modules/bulma/bulma';
@import '../../node_modules/tippy.js/dist/tippy.css';
// @import '../../node_modules/tippy.js/dist/tippy.css';
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@300;700&family=Fira+Mono&display=swap');

@import 'global';
Expand Down
6 changes: 5 additions & 1 deletion site/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ module.exports = {
},
"sass-loader"
]
}
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
],
},
plugins: [
Expand Down

0 comments on commit a407b3f

Please sign in to comment.