webpack + angular 搭建的延遲加載 和 本地mock ,歡迎分享https://github.com/Topthinking/angular-webpack
2017-02-24
講師回答 / qbaty
Configure optipng's optimizationLevel option in its own options ,這里是說如果你要壓縮圖片,針對某一類型的,你需要單獨的放到他的options里,{????optipng: {????????optimizationLevel: xxx????}}
2017-02-24
{
test: /\.css$/,
use: [
'style-loader',
{loader: 'css-loader',options: { importLoaders: 1 } },
{loader: 'postcss-loader',options: { plugins: function(){ return [require('autoprefixer')];}
}}]}]}
按webpack2配置改出來的,但總是報錯:Module build failed: Error: No PostCSS Config found in...不自動匹配前綴!求解答..
test: /\.css$/,
use: [
'style-loader',
{loader: 'css-loader',options: { importLoaders: 1 } },
{loader: 'postcss-loader',options: { plugins: function(){ return [require('autoprefixer')];}
}}]}]}
按webpack2配置改出來的,但總是報錯:Module build failed: Error: No PostCSS Config found in...不自動匹配前綴!求解答..
2017-02-24
非全局安裝執行node_module/.bin/webpack hello.js hello.bundle.js.
http://www.jianshu.com/p/42e11515c10f
http://www.jianshu.com/p/42e11515c10f
2017-02-23
感謝老師的教學,課程很實用,從最簡單的配置開始,一步一步加深,理解起來特別容易?。?!最近公司有需求要用到webpack,正好看到有這個課程,哈哈哈,贊!
2017-02-23