Skip to content

Commit

Permalink
fix: 🐛 fix
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
lgf-136 committed Sep 30, 2022
1 parent d89da41 commit 47df808
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
userscript: {
icon: 'https://vitejs.dev/logo.svg',
namespace: 'npm/vite-plugin-monkey',
match: [ 'https://segmentfault.com/' ],
match: [ 'https://www.bilibili.com/video/*' ],
},
build: {
externalGlobals: {
Expand Down
8 changes: 6 additions & 2 deletions projects/all-in-one-template/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';
import reactLogo from './assets/react.svg';
import viteLogo from './assets/vite.svg';
import './App.css';
import utils from '@lgf136/utils';
function App() {
const [ count, setCount ] = useState(0);
console.log(utils.utils);
console.log(utils.utils, 'lgf');
useEffect(() => {
console.log('bilibili');
}, []);
return (

<div className="App">
<div>
{/* <a href="https://vitejs.dev" target="_blank" rel="noreferrer">
Expand Down
4 changes: 2 additions & 2 deletions projects/all-in-one-template/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const utoolsPluginConfig = defineConfig(({ command = '', mode = 'development', u
});
// build utools plugin

// module.exports = utoolsPluginConfig;
module.exports = utoolsPluginConfig;

module.exports = chromePlugin;
// module.exports = chromePlugin;

// build tampermonkey plugin

Expand Down

0 comments on commit 47df808

Please sign in to comment.