Use webpackChunkName config in vue-router by vite as well as webpack do.
ℹ️ Only support for Vite 2.
Install the package from npm (or yarn, or pnpm).
npm install --save-dev vite-plugin-webpackchunkname
Add it to vite.config.ts
// vite.config.ts
import { manualChunksPlugin } from 'vite-plugin-webpackchunkname'
// Other dependencies...
export default defineConfig({
plugins: [
manualChunksPlugin(),
]
})
Copyright CaptainLiao
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
$ claude mcp add vite-plugin-webpackchunkname \
-- python -m otcore.mcp_server <graph>