spiritling.github.io

关于文章与静态资源

View My GitHub Profile

webpack 引入第三方库

安装

cnpm install jquery -S

使用

在webpack 3.x 中需要大量配置,但是在webpack中则少了很多

const $ = require("jquery");

$("body").html("<p>我是由JQuery写出来的</p>")