Skip to content

Instantly share code, notes, and snippets.

@larizzatg
Created November 17, 2016 13:28
Show Gist options
  • Save larizzatg/a8a7fb3d2e0c0a781ab0ba36b3985198 to your computer and use it in GitHub Desktop.
Save larizzatg/a8a7fb3d2e0c0a781ab0ba36b3985198 to your computer and use it in GitHub Desktop.
Webpack commands
webpack .\entry.js bundle.js
webpack -w .\entry.js bundle.js
webpack -w --devtool source-map ./entry.js bundle.js
npm i css-loader style-loader -D
require('style!css!./style.css')
module.exports = {
entry: './entry.js',
output: {
filename: 'bundle.js'
},
devtool: 'source-map',
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css!'}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment