These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | const path = require('path') |
||
0 ignored issues
–
show
Backwards Compatibility
introduced
by
![]() There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
2 | const webpack = require('webpack') |
||
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
3 | const { VueLoaderPlugin } = require('vue-loader') |
||
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
4 | const StyleLintPlugin = require('stylelint-webpack-plugin') |
||
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
5 | |||
6 | module.exports = { |
||
7 | entry: path.join(__dirname, 'src', 'main.js'), |
||
8 | output: { |
||
9 | path: path.resolve(__dirname, './js'), |
||
10 | publicPath: '/js/', |
||
11 | filename: 'tasks.js' |
||
12 | }, |
||
13 | module: { |
||
14 | rules: [ |
||
15 | { |
||
16 | test: /\.css$/, |
||
17 | use: ['vue-style-loader', 'css-loader'] |
||
18 | }, |
||
19 | { |
||
20 | test: /\.scss$/, |
||
21 | use: ['vue-style-loader', 'css-loader', 'sass-loader'] |
||
22 | }, |
||
23 | { |
||
24 | test: /\.(js|vue)$/, |
||
25 | use: 'eslint-loader', |
||
26 | enforce: 'pre' |
||
27 | }, |
||
28 | { |
||
29 | test: /\.vue$/, |
||
30 | loader: 'vue-loader' |
||
31 | }, |
||
32 | { |
||
33 | test: /\.js$/, |
||
34 | use: { |
||
35 | loader: 'babel-loader', |
||
36 | options: { |
||
37 | plugins: [ |
||
38 | '@babel/plugin-syntax-dynamic-import', |
||
39 | '@babel/plugin-proposal-object-rest-spread' |
||
40 | ], |
||
41 | presets: ['@babel/preset-env'] |
||
42 | } |
||
43 | }, |
||
44 | exclude: /node_modules\/(?!(p-limit|p-defer|p-queue|p-try|cdav-library))/ |
||
45 | }, |
||
46 | { |
||
47 | test: /\.(png|jpg|gif|svg)$/, |
||
48 | loader: 'file-loader', |
||
49 | options: { |
||
50 | name: '[name].[ext]?[hash]' |
||
51 | } |
||
52 | } |
||
53 | ] |
||
54 | }, |
||
55 | plugins: [ |
||
56 | new VueLoaderPlugin(), |
||
57 | new StyleLintPlugin(), |
||
58 | new webpack.DefinePlugin({ |
||
59 | appVersion: JSON.stringify(require('./package.json').version) |
||
60 | }) |
||
61 | ], |
||
62 | resolve: { |
||
63 | extensions: ['*', '.js', '.vue', '.json'] |
||
64 | } |
||
65 | } |
||
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
66 |