Skip to content

cc8476/webpack_demo

Repository files navigation

cc_scaffold

命令: npm run dev :打开webDevServer npm run build:直接编译

todo:

1.加载css ---ok 2.加载外部图片 ---ok 3.base64图片 ---ok 4.分离开发配置与生产配置

参考:https://github.com/dtdths/webpack-html


1.实现sourcemap ---done 2.html-webpack-plugin --- done 3.利用html-webpack-plugin ,配置多入口 ---done 4.每次编译前,先清理dist ---done

done:

2.编译后自动打开chrome --ok 3.默认打开http://127.0.0.1:8088/ 应该指向 http://127.0.0.1:8088/dist/index.html --ok

About

webpack 页面脚手架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published