Skip to content

Commit

Permalink
Revert "pattern-lab#5 - Temporarily change SCSS to CSS for Prism"
Browse files Browse the repository at this point in the history
This reverts commit 0bb842b.
  • Loading branch information
simonpioli committed Oct 10, 2017
1 parent 0bb842b commit ea68877
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ function pluginInit(patternlab) {
var snippetString = '';
if (pluginConfig.tabsToAdd && pluginConfig.tabsToAdd.length > 0) {
for (let j = 0; j < pluginConfig.tabsToAdd.length; j++) {
let typePrism = pluginConfig.tabsToAdd[j];
if (typePrism === 'scss') {
typePrism = 'css';
}
let tabSnippetLocal = tab_frontend_snippet.replace(/<<type>>/g, pluginConfig.tabsToAdd[j]).replace(/<<typeUC>>/g, pluginConfig.tabsToAdd[j].toUpperCase()).replace(/<<typePrism>>/g, typePrism);
let tabSnippetLocal = tab_frontend_snippet.replace(/<<type>>/g, pluginConfig.tabsToAdd[j]).replace(/<<typeUC>>/g, pluginConfig.tabsToAdd[j].toUpperCase());
snippetString += tabSnippetLocal + EOL;
}
tabJSFileContents = tabJSFileContents.replace('/*SNIPPETS*/', snippetString);
Expand Down
4 changes: 0 additions & 4 deletions src/snippet.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* global PrismLanguages */

PrismLanguages.add({'<<type>>': '<<typePrism>>'});

/* global Panels */

Panels.add({
Expand Down

0 comments on commit ea68877

Please sign in to comment.