12345678910111213141516171819202122232425262728293031323334 |
- const webpack = require("webpack");
- const path = require("path");
- let config = {
- mode: 'development',
- entry: [
- "./js/reha.js",
- "./scss/reha.scss"
- ],
- output: {
- path: path.resolve(__dirname, "./dist"),
- 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;
|