mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-31 18:46:07 +01:00
36 lines
731 B
JavaScript
36 lines
731 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
entry: "./src/scm.scss",
|
|
devtool: "cheap-module-eval-source-map",
|
|
target: "web",
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(css|scss|sass)$/i,
|
|
use: [
|
|
// Creates `style` nodes from JS strings
|
|
"style-loader",
|
|
// Translates CSS into CommonJS
|
|
"css-loader",
|
|
// Compiles Sass to CSS
|
|
"sass-loader"
|
|
]
|
|
},
|
|
{
|
|
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
|
|
use: ["file-loader"]
|
|
}
|
|
]
|
|
},
|
|
output: {
|
|
filename: "ui-styles.bundle.js"
|
|
},
|
|
devServer: {
|
|
contentBase: path.join(__dirname, "public"),
|
|
compress: false,
|
|
overlay: true,
|
|
port: 5000,
|
|
}
|
|
};
|