funme / coding

loving && coding && living
0 stars 0 forks source link

Webpack4学习 #55

Open yangmaoHu opened 5 years ago

yangmaoHu commented 5 years ago

webpack,模块打包工具

yangmaoHu commented 5 years ago
ES Moudule 模块引入方式

export default Header;
import Header from './header.js';
CommonJS 模块引入规范

var Header = require('./header.js');
module.exports = Header;