How to use Webpack 4 to compile Sass files properly?
问题 My code is working but it ends up with unnecessary .js files in the output directory. I'm trying to find a way to get a clean output. To make it clear what I mean I describe my code below: You can find my project here. The Webpack config is the following (tasks/options/webpack.js, I'm using grunt to run webpack if it matters): const path = require('path'); const webpack = require('webpack'); const autoprefixer = require('autoprefixer'); const MiniCssExtractPlugin = require('mini-css-extract