webpack

$ webpack entry.js bundle.js
require("!style-loader!css-loader!./style.css")
$ webpack entry.js bundle.js --module-bind 'css=style-loader!css-loader'

yarn init -y

// yarn init --yes
// yarn init --yes=true // 即全部选项默认为 yes

报错 done

"webpack": "^4.6.0"
Unknown argument: mode //webpack-cli init

js

babel-loder

css

style-loder
css-loder
postcss-loder
stylus-loder
extract-text-webpack-plugin

img

file-loder
url-loder
image-loder

plugin

html-webpack-plugin

你可能感兴趣的:(webpack)