move admin JS src folder to resolve as root, rather than as modules

This commit is contained in:
Christopher Joe 2016-10-06 20:43:59 +13:00
parent 2f4867fef8
commit 8fbfe6b5c5

View File

@ -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',