nextcloud /
notes
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
Loading history...
|
|||
| 2 | const { VueLoaderPlugin } = require('vue-loader'); |
||
|
0 ignored issues
–
show
|
|||
| 3 | |||
| 4 | module.exports = { |
||
| 5 | entry: path.join(__dirname, 'src', 'main.js'), |
||
| 6 | output: { |
||
| 7 | path: path.resolve(__dirname, './js'), |
||
| 8 | publicPath: '/js/', |
||
| 9 | filename: 'notes.js' |
||
| 10 | }, |
||
| 11 | module: { |
||
| 12 | rules: [ |
||
| 13 | { |
||
| 14 | test: /\.css$/, |
||
| 15 | use: ['vue-style-loader', 'css-loader'] |
||
| 16 | }, |
||
| 17 | { |
||
| 18 | test: /\.scss$/, |
||
| 19 | use: ['vue-style-loader', 'css-loader', 'sass-loader'] |
||
| 20 | }, |
||
| 21 | { |
||
| 22 | test: /\.vue$/, |
||
| 23 | loader: 'vue-loader' |
||
| 24 | }, |
||
| 25 | { |
||
| 26 | test: /\.js$/, |
||
| 27 | loader: 'babel-loader', |
||
| 28 | exclude: /node_modules/ |
||
| 29 | }, |
||
| 30 | { |
||
| 31 | test: /\.(png|jpg|gif|svg)$/, |
||
| 32 | loader: 'file-loader', |
||
| 33 | options: { |
||
| 34 | name: '[name].[ext]?[hash]' |
||
| 35 | } |
||
| 36 | } |
||
| 37 | ] |
||
| 38 | }, |
||
| 39 | plugins: [new VueLoaderPlugin()], |
||
| 40 | resolve: { |
||
| 41 | extensions: ['*', '.js', '.vue', '.json'] |
||
| 42 | } |
||
| 43 | } |
||
|
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: Loading history...
|
|||
| 44 |