更新时间:2022-10-04 09:47:40
mkdir app
cd app
echo document.write("It works"); > runoob1.js
dir
type runoob1.js
echo ... > index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <link rel="stylesheet" href=""> </head> <body> <script type="text/javascript" src="bundle.js" charset="utf-8"></script> </body> </html>
type index.html
cnpm install webpack
webpack runoob1.js bundle.js
本文转自 素颜猪 51CTO博客,原文链接:http://blog.51cto.com/suyanzhu/1899006