buildchain/webpack-settings/app.settings.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 25
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 17
c 0
b 0
f 0
dl 0
loc 25
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
// app.settings.js
2
3
// node modules
4
require('dotenv').config();
5
const path = require('path');
6
7
// settings
8
module.exports = {
9
  alias: {
10
    '@': path.resolve('../src/web/assets/src'),
11
  },
12
  copyright: '©2022 nystudio107.com',
13
  entry: {
14
    'javascript-editor': [
15
      '@/js/twigfield.js',
16
      '@/css/twigfield.pcss',
17
      'monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf'
18
    ],
19
  },
20
  extensions: ['.ts', '.js', '.vue', '.json'],
21
  name: 'twigfield',
22
  paths: {
23
    dist: path.resolve('../src/web/assets/dist/'),
24
  },
25
  urls: {
26
    publicPath: () => process.env.PUBLIC_PATH || '',
27
  },
28
};
29