-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from editor-js/migrate/vite
Migrate to vite
- Loading branch information
Showing
9 changed files
with
225 additions
and
3,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ src/ | |
.jshintrc | ||
.postcssrc | ||
.stylelintrc | ||
webpack.config.js | ||
vite.config.js | ||
yarn.lock |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "CodeTool", | ||
fileName: "code", | ||
}, | ||
}, | ||
define: { | ||
NODE_ENV: JSON.stringify(NODE_ENV), | ||
VERSION: JSON.stringify(VERSION), | ||
}, | ||
|
||
plugins: [cssInjectedByJsPlugin()], | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.