运行webpack hello.js hello.bundle.js --module-bind 'css=style-loader!css-loader 会报错
2017-02-21
最赞回答 / JAVAZeng
"为什么我下载的html-webpack-plugin在html模板中不能<%= htmlwebpackplugin.options.title="">打印"你这个写错了,后面没有那个等号,正确应该这样写: <%= htmlwebpackplugin.options.title %>
2017-02-20
// webpack.config.js
var webpack = require('webpack');
module.exports = {plugins: [new webpack.LoaderOptionsPlugin({options: {postcss: [require("autoprefixer")({
browsers: ["last 5 versions"]
})
]
}
})
]
}
var webpack = require('webpack');
module.exports = {plugins: [new webpack.LoaderOptionsPlugin({options: {postcss: [require("autoprefixer")({
browsers: ["last 5 versions"]
})
]
}
})
]
}
2017-02-20
我这边htmlWebpackPlugin.files.chunks.main.entry配置报一大堆错误,但是只写htmlWebpackPlugin.files.chunks就可以,webpack.config.js中有main这个的,都是按照视频写的
2017-02-19