Skip to content

Commit 6e6b218

Browse files
committed
feat: build use config
1 parent be71773 commit 6e6b218

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "GitHub Sponsors ❤",
2727
"url": "https://github.com/sponsors/CoCreate-app"
2828
},
29-
"main": "./src/index.js",
29+
"main": "./CoCreate.modules.js",
3030
"browserslist": [
3131
"> 1%",
3232
"last 2 versions",
@@ -46,10 +46,12 @@
4646
"devDependencies": {
4747
"@cocreate/cli": "^1.51.0",
4848
"@cocreate/webpack": "^1.4.1",
49-
"css-loader": "^5.1.3",
49+
"css-loader": "^7.1.3",
5050
"esbuild": "^0.25.2",
5151
"esbuild-loader": "^4.3.0",
5252
"mini-css-extract-plugin": "^1.4.0",
53+
"sass": "^1.97.3",
54+
"sass-loader": "^16.0.7",
5355
"webpack": "^5.39.1",
5456
"webpack-bundle-analyzer": "^4.4.0",
5557
"webpack-cli": "^4.7.2",

src/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = async (env, argv) => {
1414
const isProduction = argv.mode === "production";
1515
const config = {
1616
entry: {
17-
CoCreate: "./src/index.js"
17+
CoCreate: "./CoCreate.modules.js"
1818
},
1919

2020
output: {

0 commit comments

Comments
 (0)