第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

postcss的配置問(wèn)題

var htmlWebpackPlugin = require("html-webpack-plugin");

var path = require('path');

var webpack = require('webpack');

module.exports = {

?????entry: './src/app.js',

???? output: {

???? path: __dirname + '/dist',?

???? filename: 'js/[name]-bundle.js'

???? },


module: {

???? rules: [

???????? {

???????????? test: /\.js$/,

????????????include: '/src/', ? ? ?

???????????? exclude: '/node_modules/', ? ?

???????????? loaders: "babel-loader",?

???????????? query: {

???????????????? presets: ["latest"]

???????????????? }

???????? },

???????? {

? ? ? ? ? ? ? test:/\.css$/,

? ? ? ? ? ? ? use:[

? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? loader:'style-loader'

? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? loader:'css-loader',

? ? ? ? ? ? ? ? ? ? ? options:{

? ? ? ? ? ? ? ? ? ? ? ? ? importLoaders:1

? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? loader:'postcss-loader'

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ]

? ? ? ? ? }

????]

},

plugins: [

????new htmlWebpackPlugin({

???? ????filename: 'index.html',?

???? ????template: 'index.html',?

???? ????inject: 'body',?

???? }),

????new webpack.LoaderOptionsPlugin({

???? ? ? ? ?options: {

???? ? ? ? ? ? ?postcss: function(){

???? ? ? ? ? ? ? ? ?return [

???? ? ? ? ? ? ? ? ? ? ?require('autoprefixer')({

???? ? ? ? ? ? ? ? ? ? ? ? ?broswers: ['last 5 versions']

???? ? ? ? ? ? ? ? ? ? ?})

???? ? ? ? ? ? ? ? ?]

???? ? ? ? ? ? ?}

???? ? ? ? ?}

???? ? ?})


????]

}

為什么我還是不行,我也已經(jīng)配置了postcss.config.js 文件了


module.exports = {

? ? plugins:[

? ? ? ? require('autoprefixer')({ browsers: ["last 5 versions"]})

? ? ]

}


還是報(bào)這個(gè)錯(cuò)

http://img1.sycdn.imooc.com//5919458c00014b8408110112.jpg

正在回答

2 回答

{
????????test:?/\.css$/,
????????use:?[
	????????{
	??????		loader:'style-loader'
	??????	},
	??????	{
	????????	loader:'css-loader'
	??????	},
	??????	{?
	??????		loader:?'postcss-loader',
	??????		//?some?plugins?of?postcss-loader:some?options
	??????		options:?{
	??????			plugins:?function?()?{
	??????				return?[
	??????					require('postcss-import')({
	??????						root:this.resourcePath
	??????					}),
	??????					require('autoprefixer')({
	??????						broswers:?['last?5?versions']
	??????					})
??????					]
	??????			}
	????			}
	????		}
????		]	
			},


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

joyful2

為啥我還是不行,試了很多方法都不行,求教!
2018-06-20 回復(fù) 有任何疑惑可以回復(fù)我~
??????{
????????test:?/\.css$/,
????????loaders:?[
??????????"style-loader",?
??????????"css-loader?importLoaders=1",?
??????????{
????????????loader:?"postcss-loader",
????????????options:?{
??????????????plugins:?(loader)=>[
????????????????require('autoprefixer')({
????????????????????broswers:['last?5?versions']
????????????????})
??????????????]
????????????},
??????????}
????????],
??????}

這么配置

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

joyful2

應(yīng)該是browsers吧,不過(guò)單詞改過(guò)來(lái)也不行。有知道的嗎?
2018-06-20 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

postcss的配置問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)