http://zhaoda.net/webpack-han...
这个文档里面
require("!style!css!./style.css") // 载入 style.css
document.write('It works.')
document.write(require('./module.js'))
其中require("!style!css!./style.css") // 载入 style.css的!style!css!是什么意思?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
style! 表示 style-loader
css! 表示 css-loader
省略
-loader后缀在 webpack2 中已经不赞成了https://github.com/webpack/webpack/issues/2986