forked from editor-js/list
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
30 lines (27 loc) · 755 Bytes
/
vite.config.js
File metadata and controls
30 lines (27 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import path from 'path';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
import * as pkg from './package.json';
import dts from 'vite-plugin-dts';
// eslint-disable-next-line n/prefer-global/process
const NODE_ENV = process.argv.mode || 'development';
const VERSION = pkg.version;
export default {
build: {
copyPublicDir: false,
lib: {
// eslint-disable-next-line no-undef
entry: path.resolve(__dirname, 'src', 'index.ts'),
name: 'EditorjsList',
fileName: 'editorjs-list',
},
},
define: {
NODE_ENV: JSON.stringify(NODE_ENV),
VERSION: JSON.stringify(VERSION),
},
server: {
port: 3303,
open: './playground/index.html',
},
plugins: [cssInjectedByJsPlugin(), dts()],
};