mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Copy core/webpack config into common config
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
adfb9010d4
commit
be595a4187
1 changed files with 14 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ const path = require('path')
|
|||
const CircularDependencyPlugin = require('circular-dependency-plugin')
|
||||
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
|
||||
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||
|
||||
const webpack = require('webpack')
|
||||
const modules = require('./webpack.modules.js')
|
||||
|
||||
const formatOutputFromModules = (modules) => {
|
||||
|
|
@ -50,6 +50,14 @@ module.exports = {
|
|||
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /davclient/,
|
||||
loader: 'exports-loader',
|
||||
options: {
|
||||
type: 'commonjs',
|
||||
exports: 'dav',
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
|
|
@ -124,6 +132,11 @@ module.exports = {
|
|||
new ESLintPlugin(),
|
||||
new CircularDependencyPlugin({
|
||||
}),
|
||||
new webpack.ProvidePlugin({
|
||||
_: 'underscore',
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue