Skip to content

Commit

Permalink
chore: remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Superd22 committed Aug 8, 2022
1 parent d11a4fd commit bbd0155
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@ import { load } from 'cheerio'
export default defineConfig({
plugins: [
legacy({ targets: 'Chrome 53', }),

{
name: 'Remove modern bundles',
enforce: 'post',
transformIndexHtml: {
// enforce: 'post',
transform: (html, ctx) => {
const $ = load(html);
console.log("notice me wesh", html)
const $ = load(html)
$("[type=module]").remove()

console.log($.html())
return {
html: $.html(),
tags: []
Expand Down

0 comments on commit bbd0155

Please sign in to comment.