Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Remove CSS Folder, Bad Idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Aug 10, 2022
1 parent 1d23e43 commit 0dabd29
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion scripts/plugins/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { movePluginFilesToWebview } from './shared.js';

function run() {
movePluginFilesToWebview('icons', ['png']);
movePluginFilesToWebview('webview/css', ['sass', 'css', 'scss', 'stylus'], true);
movePluginFilesToWebview('webview/images', ['jpg', 'png', 'svg', 'jpeg', 'gif']);
movePluginFilesToWebview('webview/videos', ['webm', 'avi']);
movePluginFilesToWebview('sounds', ['ogg']);
Expand Down
14 changes: 0 additions & 14 deletions scripts/plugins/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,5 @@ export function movePluginFilesToWebview(folderName, extensions, isSrc = false)
}
}

if (amountCopied >= 1 && extensions.includes('css')) {
console.warn('! ============ !');
console.warn(
`You're using the 'css' folder. In order to reflect changes you must restart the vue server for it to update.`,
);
console.warn(`You should move the style to the style tag in your component.`);
console.warn(`Externally styling with Athena is poorly supported and may never work correctly.`);
console.warn(
`This is fine if you have preset styles already built and don't plan on making changes in the future.`,
);
console.warn(`CSS Import Pathing Should Be: '@/plugins/css/your-plugin/some-style.css`);
console.warn('! ============ !');
}

console.log(`${folderName} - ${amountCopied} Files Added to WebView Plugins - (${extensions.join('|')})`);
}

0 comments on commit 0dabd29

Please sign in to comment.