mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-20 22:49:29 -04:00
37 lines
695 B
JavaScript
37 lines
695 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'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
};
|
|
|