Files
SCM-Manager/scm-ui/ui-styles/webpack.config.js

36 lines
731 B
JavaScript
Raw Normal View History

2019-10-10 10:41:25 +02:00
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,
}
};