nextcloud /
server
| 1 | const path = require('path'); |
||
|
0 ignored issues
–
show
Backwards Compatibility
introduced
by
Loading history...
|
|||
| 2 | const merge = require('webpack-merge'); |
||
|
0 ignored issues
–
show
|
|||
| 3 | const { VueLoaderPlugin } = require('vue-loader'); |
||
| 4 | |||
| 5 | const core = require('./core/webpack'); |
||
| 6 | const settings = require('./settings/webpack'); |
||
| 7 | |||
| 8 | const accessibility = require('./apps/accessibility/webpack'); |
||
| 9 | const comments = require('./apps/comments/webpack'); |
||
| 10 | const files_sharing = require('./apps/files_sharing/webpack'); |
||
| 11 | const files_trashbin = require('./apps/files_trashbin/webpack'); |
||
| 12 | const files_versions = require('./apps/files_versions/webpack'); |
||
| 13 | const oauth2 = require('./apps/oauth2/webpack'); |
||
| 14 | const systemtags = require('./apps/systemtags/webpack'); |
||
| 15 | const twofactor_backupscodes = require('./apps/twofactor_backupcodes/webpack'); |
||
| 16 | const updatenotifications = require('./apps/updatenotification/webpack'); |
||
| 17 | const workflowengine = require('./apps/workflowengine/webpack'); |
||
| 18 | |||
| 19 | module.exports = [] |
||
|
0 ignored issues
–
show
|
|||
| 20 | .concat( |
||
| 21 | core, |
||
| 22 | settings, |
||
| 23 | accessibility, |
||
| 24 | comments, |
||
| 25 | files_sharing, |
||
| 26 | files_trashbin, |
||
| 27 | files_versions, |
||
| 28 | oauth2, |
||
| 29 | systemtags, |
||
| 30 | twofactor_backupscodes, |
||
| 31 | updatenotifications, |
||
| 32 | workflowengine |
||
| 33 | ) |
||
| 34 | .map(config => |
||
|
0 ignored issues
–
show
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
Generally using ECMAScript 6 specific syntax is fine if you are sure that it is already supported by all engines which are supposed to run this code. Further Reading: Loading history...
|
|||
| 35 | merge(config, { |
||
| 36 | module: { |
||
| 37 | rules: [ |
||
| 38 | { |
||
| 39 | test: /\.css$/, |
||
| 40 | use: ['style-loader', 'css-loader'] |
||
| 41 | }, |
||
| 42 | { |
||
| 43 | test: /\.scss$/, |
||
| 44 | use: ['style-loader', 'css-loader', 'sass-loader'] |
||
| 45 | }, |
||
| 46 | { |
||
| 47 | test: /\.js$/, |
||
| 48 | loader: 'babel-loader', |
||
| 49 | exclude: /node_modules/ |
||
| 50 | }, |
||
| 51 | { |
||
| 52 | test: /\.vue$/, |
||
| 53 | loader: 'vue-loader' |
||
| 54 | }, |
||
| 55 | { |
||
| 56 | test: /\.(png|jpg|gif)$/, |
||
| 57 | loader: 'url-loader', |
||
| 58 | options: { |
||
| 59 | name: '[name].[ext]?[hash]', |
||
| 60 | limit: 8192 |
||
| 61 | } |
||
| 62 | }, |
||
| 63 | { |
||
| 64 | test: /\.handlebars/, |
||
| 65 | loader: "handlebars-loader", |
||
| 66 | query: { |
||
| 67 | extensions: '.handlebars' |
||
| 68 | } |
||
| 69 | } |
||
| 70 | ] |
||
| 71 | }, |
||
| 72 | plugins: [ |
||
| 73 | new VueLoaderPlugin() |
||
| 74 | ], |
||
| 75 | resolve: { |
||
| 76 | alias: { |
||
| 77 | OC: path.resolve(__dirname, './core/src/OC'), |
||
|
0 ignored issues
–
show
|
|||
| 78 | OCA: path.resolve(__dirname, './core/src/OCA'), |
||
|
0 ignored issues
–
show
|
|||
| 79 | // make sure to use the handlebar runtime when importing |
||
| 80 | handlebars: 'handlebars/runtime' |
||
| 81 | }, |
||
| 82 | extensions: ['*', '.js', '.vue', '.json'] |
||
| 83 | } |
||
| 84 | }) |
||
| 85 | ); |
||
| 86 |