Skip to content

Commit

Permalink
configurations added
Browse files Browse the repository at this point in the history
  • Loading branch information
robonetphy committed Nov 8, 2023
1 parent 968bd18 commit b81180e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
assets/
src/
webpack.config.js
vite.config.js
postcss.config.js
yarn.lock
7 changes: 7 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
plugins: [
require('postcss-nested-ancestors'),
require('postcss-nested'),
],
};

23 changes: 23 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import path from "path";
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
import * as pkg from "./package.json";

const NODE_ENV = process.argv.mode || "development";
const VERSION = pkg.version;

export default {
build: {
copyPublicDir: false,
lib: {
entry: path.resolve(__dirname, "src", "index.js"),
name: "NestedList",
fileName: "nested-list",
},
},
define: {
NODE_ENV: JSON.stringify(NODE_ENV),
VERSION: JSON.stringify(VERSION),
},

plugins: [cssInjectedByJsPlugin()],
};
37 changes: 0 additions & 37 deletions webpack.config.js

This file was deleted.

0 comments on commit b81180e

Please sign in to comment.