1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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;
|