GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 9d1212...d9d136 )
by
unknown
08:59
created

webpack.blender.js   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 67
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 47
mnd 1
bc 1
fnc 0
dl 0
loc 67
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
rs 10
1
/**
2
 * This file is part of the O2System Framework package.
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @author         Steeve Andrian Salim
8
 * @copyright      Copyright (c) Steeve Andrian Salim
9
 */
10
// ------------------------------------------------------------------------
11
12
let blender = require('o2system-blender');
13
const HtmlWebpackPlugin = require('html-webpack-plugin');
14
15
const path = require('path');
16
const isDev = process.env.NODE_ENV !== 'production';
17
18
blender.setOutputPath('assets/');
19
blender.setResourceRoot('');
20
21
if(isDev) {
22
    blender.setPublicPath('./docs/');
23
24
    blender.webpackConfig({
25
        output: {
26
            path: path.resolve(__dirname, './docs/'),
27
            publicPath: './'
28
        },
29
        devServer: {
30
            contentBase: './docs/',
31
            hot: true,
32
            open: true,
33
        },
34
        devtool: 'source-map',
35
        mode: 'development',
36
        module: {
37
            rules: [
38
                {
39
                    test: /\.(html)$/,
40
                    include: path.join(__dirname, 'src/partials'),
41
                    use: {
42
                        loader: 'html-loader',
43
                        options: {
44
                          minimize: false,
45
                          interpolate: true
46
                        }
47
                    }
48
                }
49
            ]
50
        },
51
        plugins: [
52
            new HtmlWebpackPlugin({
53
                title: 'O2System Venus UI',
54
                template: './src/index.html',
55
                inject: 'body',
56
                filename: 'index.html',
57
                hash: true
58
            })
59
        ]
60
    });
61
    
62
    blender.js('./src/UserInterface.js', './docs/venus-ui.js')
63
        .sass('./src/UserInterface.scss', './docs/venus-ui.css')
64
        .sass('./src/Components/demo.scss', './docs/venus-demo.css');
65
} else {
66
    blender.setPublicPath('./dist/');
67
68
    blender.webpackConfig({
69
        output: {
70
            path: path.resolve(__dirname, './dist/'),
71
            publicPath: './'
72
        },
73
        mode: 'production'
74
    });
75
    
76
    blender.js('./src/UserInterface.js', './dist/venus-ui.js')
77
        .sass('./src/UserInterface.scss', './dist/venus-ui.css');
78
}