mirror of
https://github.com/Screenly/Anthias.git
synced 2026-02-07 04:45:09 -05:00
37 lines
847 B
JavaScript
37 lines
847 B
JavaScript
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const path = require("path");
|
|
|
|
module.exports = {
|
|
entry: {
|
|
"anthias": "./static/js/anthias.coffee",
|
|
"settings": "./static/js/settings.coffee",
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, "static/dist"),
|
|
filename: "js/[name].js",
|
|
clean: true,
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: "css/anthias.css"
|
|
})
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.coffee$/,
|
|
use: ["coffee-loader"]
|
|
},
|
|
{
|
|
test: /\.scss$/,
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
"css-loader",
|
|
"sass-loader"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
};
|
|
|