Update config to match new webapp folder
This commit is contained in:
parent
95c704c3f4
commit
08e7242ed0
|
@ -18,13 +18,13 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"*": [
|
"*": [
|
||||||
"node_modules/*",
|
"node_modules/*",
|
||||||
"src/@custom_types/*"
|
"webapp/@custom_types/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src"
|
"./webapp"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ function makeCommonConfig() {
|
||||||
const commonConfig = {
|
const commonConfig = {
|
||||||
target: "web",
|
target: "web",
|
||||||
mode: "development",
|
mode: "development",
|
||||||
entry: "./src/index.js",
|
entry: "./webapp/index.js",
|
||||||
node: {
|
node: {
|
||||||
__dirname: false,
|
__dirname: false,
|
||||||
__filename: false
|
__filename: false
|
||||||
|
@ -28,9 +28,9 @@ function makeCommonConfig() {
|
||||||
{
|
{
|
||||||
test: /\.s[ac]ss$/i,
|
test: /\.s[ac]ss$/i,
|
||||||
use: [
|
use: [
|
||||||
'style-loader',
|
'style-loader',
|
||||||
'css-loader',
|
'css-loader',
|
||||||
'sass-loader',
|
'sass-loader',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -51,7 +51,7 @@ function makeCommonConfig() {
|
||||||
plugins: [
|
plugins: [
|
||||||
new CopyPlugin({
|
new CopyPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{ from: path.resolve(__dirname, "src/static"), to: "static" },
|
{ from: path.resolve(__dirname, "webapp/static"), to: "static" },
|
||||||
{ from: path.resolve(__dirname, "node_modules/easymde/dist/easymde.min.css"), to: "static" },
|
{ from: path.resolve(__dirname, "node_modules/easymde/dist/easymde.min.css"), to: "static" },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
@ -65,7 +65,7 @@ function makeCommonConfig() {
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
entry: {
|
entry: {
|
||||||
main: "./src/client/main.tsx",
|
main: "./webapp/src/main.tsx",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: "static/[name].js",
|
filename: "static/[name].js",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user