背景: 最近收到很多童鞋的问题:gulp和webpack 什么关系,是一种东西吗?可以只用gulp,不用webpack吗 或者反过来?基于此问: 我简单归结了一下区别和概念,让需要的同学阅读理解,从而不把时间浪费到这种模糊不清的选择问题上!--------------------------------------------------------------------------------...
分类:
Web程序 时间:
2016-06-29 14:48:11
阅读次数:
272
webpack是前端工程构建的一套工具,为什么一个程序称之为一套呢,是因为webpack其实是npm的一个模块,使用起来的话,这期间还需要很多其它模块来进行支持,所以我称之为一套工具。 webpack的功能与grunt和gulp都是基于node的,所以希望你有一个node基础,如果还没有,那么先学习 ...
分类:
Web程序 时间:
2016-06-29 12:44:47
阅读次数:
227
How much of your code runs during unit testing is an extremely valuable metric to track. Utilizing code the karma-coverage plugin and babel-plugin-__c ...
分类:
Web程序 时间:
2016-06-29 06:33:30
阅读次数:
258
If you’re only instrumenting the files in your project that are under test then your code coverage report will be misleading and it will be difficult ...
分类:
Web程序 时间:
2016-06-29 06:33:24
阅读次数:
182
When writing tests run by Karma for an application that’s bundled with webpack, it’s easiest to integrate webpack and Karma directly together. In this ...
分类:
Web程序 时间:
2016-06-28 02:03:59
阅读次数:
886
When you have a dependency that has dependencies on global variables (like jQuery or lodash) or assumes that this is bound to window, you can use the ...
分类:
Web程序 时间:
2016-06-28 02:03:59
阅读次数:
176
首先我是个小白哈,第一次玩这东西,首先我为什么要去安装node-sass模块呢,因为不安装这个模块的话sass-loader就不能正常工作 就这样搞了一个近一天的时间才安装好node-sass模块,各种google,其实好多大神说的确实是可行的,但是作为小白并不是那么理解,所以今天来整理分享给大家, ...
分类:
Web程序 时间:
2016-06-27 13:43:44
阅读次数:
1106
npm install webpack -g // 全局安装webpack npm init -y //初始化默认的package.json文件 npm install webpack --save-dev //下载webpack插件到node_modules 并在package.json文件中加上 ...
分类:
Web程序 时间:
2016-06-26 19:38:51
阅读次数:
168
此篇文章来源于https://blog.madewithlove.be/post/webpack-your-bags/ ,翻译的不准确的地方请见谅。 到目前为止你也许听过这个新的很酷的称为webpack的工具。如果你了解得不多,你可能被一些认为webpack跟构建工具Gulp一样的人以及一些认为we ...
分类:
Web程序 时间:
2016-06-26 15:21:16
阅读次数:
365
You can fine tune several webpack plugins to make your bundle as small as it can be for your specific application. However there are a few things you ...
分类:
Web程序 时间:
2016-06-25 06:09:06
阅读次数:
173