var webpack=require('webpack'); module:{{ test:/\.css$/, loaders:[ 'style-loader', {loader: 'css-loader',options: { importLoaders: 1}}, 'postcss-loader' ] } ] }
plugins:[new webpack.LoaderOptionsPlugin({ options: {postcss: [require('autoprefixer')({broswers: ['last 5 versions']})]}})]
这样是测试成功
plugins:[new webpack.LoaderOptionsPlugin({ options: {postcss: [require('autoprefixer')({broswers: ['last 5 versions']})]}})]
这样是测试成功
2017-10-19
webpack 3.7.1
无报错,却无法生成文件试试
var htmlWebpackPlugin=require('html-webpack-plugin');
const config={
entry:{main:'./src/script/main.js',a:'./src/script/a.js'},
output:{filename: '[name]-[hash].js',path: __dirname + '/dist/js/'},
plugins:[
new htmlWebpackPlugin()
]
}
module.exports=config;
无报错,却无法生成文件试试
var htmlWebpackPlugin=require('html-webpack-plugin');
const config={
entry:{main:'./src/script/main.js',a:'./src/script/a.js'},
output:{filename: '[name]-[hash].js',path: __dirname + '/dist/js/'},
plugins:[
new htmlWebpackPlugin()
]
}
module.exports=config;
2017-10-17
ejs-loader 不支持!!webpack 3.71 请注意!!
https://github.com/okonet/ejs-loader/issues/16
https://github.com/okonet/ejs-loader/issues/16
2017-10-15