Skip to content

Commit b81180e

Browse files
committed
configurations added
1 parent 968bd18 commit b81180e

File tree

4 files changed

+32
-38
lines changed

4 files changed

+32
-38
lines changed

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea/
22
assets/
33
src/
4-
webpack.config.js
4+
vite.config.js
5+
postcss.config.js
56
yarn.lock

postcss.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
plugins: [
3+
require('postcss-nested-ancestors'),
4+
require('postcss-nested'),
5+
],
6+
};
7+

vite.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import path from "path";
2+
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
3+
import * as pkg from "./package.json";
4+
5+
const NODE_ENV = process.argv.mode || "development";
6+
const VERSION = pkg.version;
7+
8+
export default {
9+
build: {
10+
copyPublicDir: false,
11+
lib: {
12+
entry: path.resolve(__dirname, "src", "index.js"),
13+
name: "NestedList",
14+
fileName: "nested-list",
15+
},
16+
},
17+
define: {
18+
NODE_ENV: JSON.stringify(NODE_ENV),
19+
VERSION: JSON.stringify(VERSION),
20+
},
21+
22+
plugins: [cssInjectedByJsPlugin()],
23+
};

webpack.config.js

-37
This file was deleted.

0 commit comments

Comments
 (0)