mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Add media library button to EasyMDE (#1508)
* Adds Media Library access to EasyMDE editor * Chooses VueJS as front end framework for #1508 * Closes #1320
This commit is contained in:
@@ -6,6 +6,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||||
const RemoveStrictPlugin = require('remove-strict-webpack-plugin')
|
||||
const WebpackShellPlugin = require('webpack-shell-plugin');
|
||||
const VueLoaderPlugin = require('vue-loader/lib/plugin');
|
||||
|
||||
const roots = {
|
||||
'themes/core': {
|
||||
@@ -132,9 +133,25 @@ function getJSConfig(root, type, entries, mode) {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader',
|
||||
options: {
|
||||
loaders: {
|
||||
css: ['vue-style-loader', {
|
||||
loader: 'css-loader',
|
||||
}],
|
||||
js: [
|
||||
'babel-loader',
|
||||
],
|
||||
},
|
||||
cacheBusting: true,
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new VueLoaderPlugin(),
|
||||
new webpack.NamedModulesPlugin(),
|
||||
new RemoveStrictPlugin(),
|
||||
// Identify files that are generated in development but not in production and create stubs to avoid a 404
|
||||
@@ -191,6 +208,13 @@ function getCSSConfig(root, type, entries, mode) {
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// test: /\.css$/,
|
||||
// use: [
|
||||
// 'vue-style-loader',
|
||||
// 'css-loader'
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
test: /\.(s?)css$/,
|
||||
use: [
|
||||
|
||||
Reference in New Issue
Block a user