Skip to content

Commit

Permalink
postcss config and vite config added
Browse files Browse the repository at this point in the history
  • Loading branch information
robonetphy committed Nov 7, 2023
1 parent 5f0dfb5 commit 3046174
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 50 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,6 @@
docs/
src/
test/
.babelrc
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-css-variables'),
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: "Checklist",
fileName: "checklist",
},
},
define: {
NODE_ENV: JSON.stringify(NODE_ENV),
VERSION: JSON.stringify(VERSION),
},

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

This file was deleted.

0 comments on commit 3046174

Please sign in to comment.