Skip to content

Commit

Permalink
fixed build and cleaned up more
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Nov 19, 2024
1 parent 14b97ee commit 717fb85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 119 deletions.
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
},
"homepage": "https://github.com/TEIC/romajs#readme",
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@material/button": "0.43.0",
"@material/card": "0.43.0",
"@material/checkbox": "0.43.0",
Expand All @@ -56,24 +54,18 @@
"axios": "^1.2.2",
"babel-core": "^6.26.3",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.5",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"brace": "^0.11.1",
"connected-react-router": "^6.5.2",
"cross-env": "^5.2.0",
"css-loader": "^3.2.0",
"dotenv": "^16.0.3",
"es6-promise": "^4.2.5",
"eslint": "^4.19.1",
"eslint-loader": "^1.9.0",
"eslint-plugin-react": "^7.11.1",
"expect": "^1.20.2",
"express": "^4.16.3",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.11",
"file-saver": "^1.3.8",
"form-data": "^2.3.2",
"linkedom": "0.14.21",
Expand Down
18 changes: 10 additions & 8 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ export default defineConfig({
modules: {
generateScopedName: '[local]',
},
/* preprocessorOptions: {
scss: {
additionalData: `@import "src/scss/romajs.scss";`,
},
}, */
},
build: {
minify: true,
outDir: 'dist',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'src/index.html'),
main: path.resolve(__dirname, './index.html'),
},
output: {
entryFileNames: 'romajs_[hash].js',
},
entryFileNames: 'romajs.js',
assetFileNames: (assetInfo) => {
if (assetInfo.name === "main.css") {
return "romajs.css"
}
return assetInfo.name
}
}
},
},
server: {
Expand Down
103 changes: 0 additions & 103 deletions webpack.config.js

This file was deleted.

0 comments on commit 717fb85

Please sign in to comment.