mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
move admin JS src folder to resolve as root, rather than as modules
This commit is contained in:
parent
2f4867fef8
commit
8fbfe6b5c5
@ -1,6 +1,7 @@
|
|||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const autoprefixer = require('autoprefixer');
|
const autoprefixer = require('autoprefixer');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
|
const path = require('path');
|
||||||
// const SprityWebpackPlugin = require('sprity-webpack-plugin');
|
// const SprityWebpackPlugin = require('sprity-webpack-plugin');
|
||||||
|
|
||||||
const PATHS = {
|
const PATHS = {
|
||||||
@ -48,7 +49,8 @@ const config = [
|
|||||||
TinyMCE_SSPlugin: `${PATHS.ADMIN_JS_SRC}/legacy/TinyMCE_SSPlugin.js`,
|
TinyMCE_SSPlugin: `${PATHS.ADMIN_JS_SRC}/legacy/TinyMCE_SSPlugin.js`,
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modulesDirectories: [PATHS.ADMIN_JS_SRC, PATHS.MODULES],
|
root: [__dirname, path.resolve(__dirname, PATHS.ADMIN_JS_SRC)],
|
||||||
|
modulesDirectories: [PATHS.MODULES],
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: 'admin/client/dist',
|
path: 'admin/client/dist',
|
||||||
|
Loading…
Reference in New Issue
Block a user