Combine the 2 js files and the scss. This saves compiling the scss on the go. And going via Nextcloud storage to obtain it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>pull/14141/head
parent
eab46d1ab1
commit
58ecc7d000
@ -0,0 +1,3 @@ |
||||
#webpack bundled files |
||||
js/files_trashbin.js |
||||
js/files_trashbin.js.map |
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
||||
import './app' |
||||
import './filelist' |
||||
import './trash.scss' |
||||
|
||||
window.OCA.Trashbin = OCA.Trashbin |
||||
@ -0,0 +1,37 @@ |
||||
const path = require('path'); |
||||
|
||||
module.exports = { |
||||
entry: path.join(__dirname, 'src', 'files_trashbin.js'), |
||||
output: { |
||||
path: path.resolve(__dirname, './js'), |
||||
publicPath: '/js/', |
||||
filename: 'files_trashbin.js' |
||||
}, |
||||
module: { |
||||
rules: [ |
||||
{ |
||||
test: /\.css$/, |
||||
use: ['style-loader', 'css-loader'] |
||||
}, |
||||
{ |
||||
test: /\.scss$/, |
||||
use: ['style-loader', 'css-loader', 'sass-loader'] |
||||
}, |
||||
{ |
||||
test: /\.js$/, |
||||
loader: 'babel-loader', |
||||
exclude: /node_modules/ |
||||
}, |
||||
{ |
||||
test: /\.(png|jpg|gif|svg)$/, |
||||
loader: 'file-loader', |
||||
options: { |
||||
name: '[name].[ext]?[hash]' |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
resolve: { |
||||
extensions: ['*', '.js'] |
||||
} |
||||
}; |
||||
@ -1,4 +1,5 @@ |
||||
const core = require('./core/webpack'); |
||||
const files_trashbin = require('./apps/files_trashbin/webpack') |
||||
const oauth2 = require('./apps/oauth2/webpack') |
||||
|
||||
module.exports = [].concat(core, oauth2); |
||||
module.exports = [].concat(core, files_trashbin, oauth2); |
||||
|
||||
Loading…
Reference in new issue