您正在查看: 标签 前端 下的文章
icon-plus

从 webpack 1 到 webpack 2 的迁移记

Tryin' to get control Pressure's takin' its toll Stuck in the middle zone I just want you alone My guessing game is strong Way too real to be wrong Caught up in your show Yeah, at least now I know It wasn't love, it wasn't love It was a perfect illusion (Perfect illusion) Mistaken for love, it wasn't love It was a perfect illusion (Perfect illusion) You were a perfect illusion I don't need eyes to see I felt you touchin' me High like amphetamine Maybe you're just a dream That's what it means to crush Now that I'm wakin' up I still feel the blow But at least now I know It wasn't love, it wasn't love It was a perfect illusion (Perfect illusion) Mistaken for love, it wasn't love It was a perfect illusion (Perfect illusion) Where are you? Cause I can't see you It was a perfect illusion But I feel you watchin' me Dilated, falling free In a modern ecstasy Where are you? Cause I can't see you It was a perfect illusion But I feel you watchin' me But I feel you watchin' me Illusion But I feel you watchin' me Mistaken for love Dilated, falling free In a modern ecstasy Mistaken for love In a modern ecstasy In a modern ecstasy I'm over the show Yeah, at least now I know It wasn't love, it wasn't love It was a perfect illusion (Perfect illusion) Mistaken for love, it wasn't love It was a perfect illusion(Perfect illusion) You were a perfect illusion It was a perfect illusion It was a perfect illusion Somewhere in all the confusion It was a perfect illusion, illusion, illusion It was a perfect illusion Somewhere in all the confusion You were so perfect You were a, you were a perfect illusion 最近上手新项目的时候想要用个 sass,结果发现 npm 里面的 sass-loader 默认的 peerDependencies 中的 webpack 版本被升级到了 2
当时没想太多,就装了个 webpack 2.2.1来用,结果发现以前项目的 webpack 配置居然不能够直接用!一跑起来一还堆错
上网查了下,才知道 webpack 2 弄了很多 breaking changes ,想着反正这些问题迟早要解决的,于是就开始了我的 webpack 2 踩坑过程

icon-plus

使用阿里巴巴矢量图标库自定义图标集

Do you recall, not long ago We would walk on the sidewalk Innocent, remember? All we did was care for each other But the night was warm We were bold and young All around the wind blows We would only hold on to let go Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on What will we do when we get old? Will we walk down the same road? Will you be there by my side? Standing strong as the waves roll over When the nights are long Longing for you to come home All around the wind blows We would only hold on to let go Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on All we need is somebody to lean on All we need is somebody to lean on Lean on, lean on, lean on, lean on... Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on Blow a kiss, fire a gun We need someone to lean on Blow a kiss, fire a gun All we need is somebody to lean on 最近用上了阿里巴巴的矢量图标库后,简直爱不释手,对小网站来说真是太好用了。
有的时候,对于自己开发的小型网站来说,不太想用 bootstrap 这么重的框架,但又想用 bootstrap 里面的字体图标
一般我的做法就是直接手动引入font-awesome,然后在对应要用到图标的地方加 class
但从现在看来,直接引用font-awesome还是有这么一些个很明显的缺陷: