diff --git a/.gitignore b/.gitignore index 59bc46560..dd9bc0bef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ -# NPM and Yarn +# NPM / Yarn / Pnpm npm-debug.log yarn-error.log +pnpm-lock.yaml node_modules/ # Build artifacts and asset stuff @@ -50,4 +51,4 @@ DerivedData VendorLib/clang/lib/arc VendorLib/clang/lib/c++ -.idea \ No newline at end of file +.idea diff --git a/package.json b/package.json index fe31bb249..7227ec692 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,8 @@ "author": "Peter Cottle ", "license": "MIT", "scripts": { + "dev": "vite", + "prepare": "gulp fastBuild", "test": "gulp test" }, "repository": { @@ -33,7 +35,8 @@ "jshint": "^2.13.4", "prompt": "^1.2.2", "vinyl-buffer": "^1.0.1", - "vinyl-source-stream": "^2.0.0" + "vinyl-source-stream": "^2.0.0", + "vite": "^4.0.12" }, "dependencies": { "backbone": "^1.4.0", diff --git a/src/template.index.html b/src/template.index.html index d6404d07b..b953ab6ec 100644 --- a/src/template.index.html +++ b/src/template.index.html @@ -1,5 +1,4 @@ - + diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 000000000..6a2687673 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,16 @@ +import { defineConfig } from 'vite'; + +export default defineConfig(({ command, mode, isSsrBuild, isPreview }) => { + if (command === 'serve') { + return { + // dev specific config + } + } else { + // command === 'build' + return { + // build specific config + } + } +}) + +