// const webpack = require("webpack"); // const path = require("path"); // let config = { // mode: 'development', // entry: [ // "./scripts/main.js", // "./scripts/extlink.js", // "./scss/styles.scss", // ], // output: { // path: path.resolve(__dirname, "./dist/assets"), // filename: "./bundle.js" // }, // module: { // rules: [ // { // test: /\.scss$/i, // use: [ // { // loader: 'file-loader', // options: { // name: './css/bundle.css', // } // }, // // Compile le Sass en CSS // "sass-loader" // ], // }, // ], // } // } // module.exports = config; // const webpack = require("webpack"); // const path = require("path"); // const MiniCssExtractPlugin = require("mini-css-extract-plugin"); // let config = { // mode: 'development', // entry: [ // "./scripts/main.js", // "./scripts/extlink.js", // "./scss/styles.scss", // ], // output: { // path: path.resolve(__dirname, "./dist/assets"), // filename: "./bundle.js", // }, // module: { // rules: [ // { // test: /\.scss$/i, // use: [ // // Extract CSS to a separate file (instead of injecting with