Webpack really isn't the right tool if you're just doing CSS stuff. It can be done though I believe. You'll need the 'css-loader', 'style-loader', 'sass-loader' and 'node-sass' packages from npm. Check the documentation for the loaders to see how to add them into your webpack.config.js
My suggestion would be to create a JavaScript file called index.js and set that as your entry point. Then require the stylesheets in that file.
require('stylesheet.css')
require('styles.sass')
//etc
You can then look at configuring extract-text-webpack-plugin which will compile to a .css
file for you.
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const extractSass = new ExtractTextPlugin({
filename: "[name].css"
});
module.exports = {
entry: "./index.js",
output: "./index.min.js",
module: {
rules: [{
test: /\.scss$/,
use: extractSass.extract({
use: [{
loader: "css-loader"
}, {
loader: "sass-loader"
}]
},{
test: /\.sass$/,
use: extractSass.extract({
use: [{
loader: "css-loader"
}, {
loader: "sass-loader"
}]
})
}]
},
plugins: [
extractSass
]
};