mirror of https://github.com/nextcloud/server.git
Move systemtags to common webpack
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>pull/14186/head
parent
15dc1fa62f
commit
0357a30a58
@ -0,0 +1,2 @@
|
||||
#webpack bundled files
|
||||
js/systemtags.js
|
@ -1,7 +0,0 @@
|
||||
[
|
||||
"app.js",
|
||||
"systemtagsfilelist.js",
|
||||
"filesplugin.js",
|
||||
"systemtagsinfoview.js",
|
||||
"systemtagsinfoviewtoggleview.js"
|
||||
]
|
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,8 @@
|
||||
import './app'
|
||||
import './systemtagsfilelist'
|
||||
import './filesplugin'
|
||||
import './systemtagsinfoview'
|
||||
import './systemtagsinfoviewtoggleview'
|
||||
import './css/systemtagsfilelist.scss'
|
||||
|
||||
window.OCA.SystemTags = OCA.SystemTags;
|
@ -0,0 +1,37 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: path.join(__dirname, 'src', 'systemtags.js'),
|
||||
output: {
|
||||
path: path.resolve(__dirname, './js'),
|
||||
publicPath: '/js/',
|
||||
filename: 'systemtags.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']
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue