Files
dagu/ui/webpack.common.js
T
Yota Hamada fe1f8c9a53 Simplify UI (#460)
* fix webpack config issue

* simplify ui design

* fix button style

* update screenshots
2023-08-11 21:35:01 +09:00

49 lines
955 B
JavaScript

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const path = require('path');
module.exports = {
entry: './src/index.tsx',
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.(png|jpg|gif)$/i,
use: [
{
loader: 'url-loader',
options: {
encoding: 'base64',
},
},
],
},
{
test: /\.ttf$/,
type: 'asset/resource',
},
],
},
plugins: [
new MonacoWebpackPlugin({
languages: ['yaml'],
features: ['find'],
customLanguages: [
{
label: 'yaml',
entry: 'monaco-yaml',
worker: {
id: 'monaco-yaml/yamlWorker',
entry: 'monaco-yaml/yaml.worker',
},
},
],
}),
],
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
};