nextcloud /
server
| 1 | const path = require('path'); |
||
|
0 ignored issues
–
show
Backwards Compatibility
introduced
by
Loading history...
|
|||
| 2 | |||
| 3 | module.exports = { |
||
|
0 ignored issues
–
show
|
|||
| 4 | entry: path.join(__dirname, 'src', 'files_trashbin.js'), |
||
|
0 ignored issues
–
show
|
|||
| 5 | output: { |
||
| 6 | path: path.resolve(__dirname, './js'), |
||
|
0 ignored issues
–
show
|
|||
| 7 | publicPath: '/js/', |
||
| 8 | filename: 'files_trashbin.js' |
||
| 9 | }, |
||
| 10 | module: { |
||
| 11 | rules: [ |
||
| 12 | { |
||
| 13 | test: /\.css$/, |
||
| 14 | use: ['style-loader', 'css-loader'] |
||
| 15 | }, |
||
| 16 | { |
||
| 17 | test: /\.scss$/, |
||
| 18 | use: ['style-loader', 'css-loader', 'sass-loader'] |
||
| 19 | }, |
||
| 20 | { |
||
| 21 | test: /\.js$/, |
||
| 22 | loader: 'babel-loader', |
||
| 23 | exclude: /node_modules/ |
||
| 24 | }, |
||
| 25 | { |
||
| 26 | test: /\.(png|jpg|gif|svg)$/, |
||
| 27 | loader: 'file-loader', |
||
| 28 | options: { |
||
| 29 | name: '[name].[ext]?[hash]' |
||
| 30 | } |
||
| 31 | } |
||
| 32 | ] |
||
| 33 | }, |
||
| 34 | resolve: { |
||
| 35 | extensions: ['*', '.js'] |
||
| 36 | } |
||
| 37 | }; |
||
| 38 |