webpack + angular 搭建的延遲加載 和 本地mock ,歡迎分享https://github.com/Topthinking/angular-webpack
2017-02-24
已采納回答 / qbaty
嗯,是的,是可以的,其實(shí)你可以理解htmlwebpackplugin里的那些打包以后的js 路徑都是變量,你可以在各個(gè)模板里指定需要哪些,不需要哪些
2017-02-24
講師回答 / qbaty
Configure optipng's optimizationLevel option in its own options ,這里是說如果你要壓縮圖片,針對(duì)某一類型的,你需要單獨(dú)的放到他的options里,{????optipng: {????????optimizationLevel: xxx????}}
2017-02-24
最新回答 / 不結(jié)冰
webpackconfig文件里一加include過濾就出來了直接export不走babel了
{
test: /\.css$/,
use: [
'style-loader',
{loader: 'css-loader',options: { importLoaders: 1 } },
{loader: 'postcss-loader',options: { plugins: function(){ return [require('autoprefixer')];}
}}]}]}
按webpack2配置改出來的,但總是報(bào)錯(cuò):Module build failed: Error: No PostCSS Config found in...不自動(dòng)匹配前綴!求解答..
test: /\.css$/,
use: [
'style-loader',
{loader: 'css-loader',options: { importLoaders: 1 } },
{loader: 'postcss-loader',options: { plugins: function(){ return [require('autoprefixer')];}
}}]}]}
按webpack2配置改出來的,但總是報(bào)錯(cuò):Module build failed: Error: No PostCSS Config found in...不自動(dòng)匹配前綴!求解答..
2017-02-24
非全局安裝執(zhí)行node_module/.bin/webpack hello.js hello.bundle.js.
http://www.jianshu.com/p/42e11515c10f
http://www.jianshu.com/p/42e11515c10f
2017-02-23
感謝老師的教學(xué),課程很實(shí)用,從最簡(jiǎn)單的配置開始,一步一步加深,理解起來特別容易!?。∽罱居行枨笠玫絯ebpack,正好看到有這個(gè)課程,哈哈哈,贊!
2017-02-23