提交 bded16d3 编写于 作者: U u013235949

Wed Nov 13 16:31:00 CST 2024 inscode

上级 020e62cd
......@@ -5,4 +5,4 @@ const file = new VFile('Hello')
console.log('file', file.value)
console.log("欢迎来到 InsCode");
\ No newline at end of file
console.log("欢迎来到 webpack");
\ No newline at end of file
......@@ -6,6 +6,8 @@
"scripts": {
"dev": "node out.js",
"prebuild": "esbuild index.js --bundle --outfile=out.js",
"webpackBuild": "webpack",
"webpackDev": "node dist/main.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
......@@ -17,6 +19,8 @@
"vfile": "^6.0.3"
},
"devDependencies": {
"esbuild": "0.24.0"
"esbuild": "0.24.0",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4"
}
}
const path = require('path');
module.exports = {
entry: './index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
},
};
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册