mirror of https://github.com/Squidex/squidex.git
Browse Source
* Prepare for v17 * Temp * Fix updates. * Fix compilation errors. * Fix leaflet. * Update node version. * Fix test build.pull/1043/head
committed by
GitHub
27 changed files with 12464 additions and 14254 deletions
File diff suppressed because it is too large
@ -1,65 +0,0 @@ |
|||||
const process = require('process'); |
|
||||
const plugins = { |
|
||||
// https://webpack.js.org/plugins/eslint-webpack-plugin/
|
|
||||
ESLintPlugin: require('eslint-webpack-plugin'), |
|
||||
// https://github.com/webpack-contrib/stylelint-webpack-plugin
|
|
||||
StylelintPlugin: require('stylelint-webpack-plugin'), |
|
||||
// https://github.com/webpack-contrib/mini-css-extract-plugin
|
|
||||
MiniCssExtractPlugin: require('mini-css-extract-plugin'), |
|
||||
// https://webpack.js.org/plugins/copy-webpack-plugin/
|
|
||||
CopyPlugin: require('copy-webpack-plugin'), |
|
||||
}; |
|
||||
|
|
||||
process.on('uncaughtException', err => { |
|
||||
// Prevent ECONNRESET errors
|
|
||||
console.log(err); |
|
||||
}); |
|
||||
|
|
||||
module.exports = (config, _, options) => { |
|
||||
/* |
|
||||
* Copy lazy loaded libraries to output. |
|
||||
*/ |
|
||||
config.plugins.push(new plugins.CopyPlugin({ |
|
||||
patterns: [ |
|
||||
{ from: './node_modules/tui-code-snippet/dist', to: 'dependencies/tui-calendar' }, |
|
||||
{ from: './node_modules/tui-calendar/dist', to: 'dependencies/tui-calendar' }, |
|
||||
|
|
||||
{ from: './node_modules/ace-builds/src-min/ace.js', to: 'dependencies/ace/ace.js' }, |
|
||||
{ from: './node_modules/ace-builds/src-min/ext-language_tools.js', to: 'dependencies/ace/ext/language_tools.js' }, |
|
||||
{ from: './node_modules/ace-builds/src-min/ext-modelist.js', to: 'dependencies/ace/ext/modelist.js' }, |
|
||||
{ from: './node_modules/ace-builds/src-min/mode-*.js', to: 'dependencies/ace/[name][ext]' }, |
|
||||
{ from: './node_modules/ace-builds/src-min/snippets', to: 'dependencies/ace/snippets' }, |
|
||||
{ from: './node_modules/ace-builds/src-min/worker-*.js', to: 'dependencies/ace/[name][ext]' }, |
|
||||
|
|
||||
{ from: './node_modules/leaflet-control-geocoder/dist/Control.Geocoder.css', to: 'dependencies/leaflet' }, |
|
||||
{ from: './node_modules/leaflet-control-geocoder/dist/Control.Geocoder.min.js', to: 'dependencies/leaflet' }, |
|
||||
{ from: './node_modules/leaflet/dist/leaflet.js', to: 'dependencies/leaflet' }, |
|
||||
{ from: './node_modules/leaflet/dist/leaflet.css', to: 'dependencies/leaflet' }, |
|
||||
{ from: './node_modules/leaflet/dist/images', to: 'dependencies/leaflet/images' }, |
|
||||
|
|
||||
{ from: './node_modules/video.js/dist/video.min.js', to: 'dependencies/videojs' }, |
|
||||
{ from: './node_modules/video.js/dist/video-js.min.css', to: 'dependencies/videojs' }, |
|
||||
|
|
||||
{ from: './node_modules/font-awesome/css/font-awesome.min.css', to: 'dependencies/font-awesome/css' }, |
|
||||
{ from: './node_modules/font-awesome/fonts', to: 'dependencies/font-awesome/fonts' }, |
|
||||
|
|
||||
{ from: './node_modules/vis-network/standalone/umd/vis-network.min.js', to: 'dependencies' }, |
|
||||
], |
|
||||
})); |
|
||||
|
|
||||
config.plugins.push(new plugins.StylelintPlugin({ |
|
||||
files: '**/*.scss', |
|
||||
})); |
|
||||
|
|
||||
if (options.target === 'build') { |
|
||||
config.plugins.push( |
|
||||
new plugins.ESLintPlugin({ |
|
||||
files: [ |
|
||||
'./app/**/*.ts', |
|
||||
], |
|
||||
}), |
|
||||
); |
|
||||
} |
|
||||
|
|
||||
return config; |
|
||||
}; |
|
||||
Loading…
Reference in new issue