Skip to content

Commit

Permalink
fix(web): include xterm styles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Dec 30, 2020
1 parent 1a82569 commit 4a690fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
\:host
display: block
width: 100%
height: 500px
margin: 20px 0

&.is-small
height: 400px
3 changes: 2 additions & 1 deletion web/abstruse/src/styles/terminal.sass
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.terminal-container
display: block
width: 100%
height: 100%
height: 500px
position: relative
border-radius: $border-radius
overflow: hidden

.xterm
position: absolute
Expand Down
2 changes: 1 addition & 1 deletion web/abstruse/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ const PurgeCSSPlugin = require('purgecss-webpack-plugin');

module.exports = {
plugins: [
new PurgeCSSPlugin({ paths: glob.sync('./src/**/*.html', { nodir: true }) })
new PurgeCSSPlugin({ paths: glob.sync('./src/**/*.html', { nodir: true }), safelist: [/^xterm/] })
]
};

0 comments on commit 4a690fb

Please sign in to comment.