Created
November 17, 2016 13:28
-
-
Save larizzatg/a8a7fb3d2e0c0a781ab0ba36b3985198 to your computer and use it in GitHub Desktop.
Webpack commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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