运行$ webpack hello.js hello.bundle.js --module-bind 'css=style-loader!css-loader!'
ERROR in ./hello.js
Module not found: Error: Can't resolve '' in 'E:\webpack\webpack-test'@ ./hello.js 2:0-22
ERROR in ./hello.js
Module not found: Error: Can't resolve '' in 'E:\webpack\webpack-test'@ ./hello.js 2:0-22
2017-02-25
1.postcss.config.js
module.exports = {
plugins: [
require('autoprefixer')({ browsers: ["last 5 versions"] })
]
}
2.webpack.config.js
module:{
rules:[
...
{test:/\.css$/,use:['style-loader', 'css-loader','postcss-loader']}]},
module.exports = {
plugins: [
require('autoprefixer')({ browsers: ["last 5 versions"] })
]
}
2.webpack.config.js
module:{
rules:[
...
{test:/\.css$/,use:['style-loader', 'css-loader','postcss-loader']}]},
2017-02-24
webpack hello.js hello.bundle.js --module-bind "css=style-loader!css-loader"
正解。切记是双引号
正解。切记是双引号
2017-02-24
webpack + angular 搭建的延迟加载 和 本地mock ,欢迎分享https://github.com/Topthinking/angular-webpack
2017-02-24