Update config to match new webapp folder
This commit is contained in:
parent
95c704c3f4
commit
08e7242ed0
2 changed files with 9 additions and 9 deletions
|
@ -18,13 +18,13 @@
|
|||
"paths": {
|
||||
"*": [
|
||||
"node_modules/*",
|
||||
"src/@custom_types/*"
|
||||
"webapp/@custom_types/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"./src"
|
||||
"./webapp"
|
||||
],
|
||||
"exclude": [
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ function makeCommonConfig() {
|
|||
const commonConfig = {
|
||||
target: "web",
|
||||
mode: "development",
|
||||
entry: "./src/index.js",
|
||||
entry: "./webapp/index.js",
|
||||
node: {
|
||||
__dirname: false,
|
||||
__filename: false
|
||||
|
@ -28,9 +28,9 @@ function makeCommonConfig() {
|
|||
{
|
||||
test: /\.s[ac]ss$/i,
|
||||
use: [
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
'sass-loader',
|
||||
'style-loader',
|
||||
'css-loader',
|
||||
'sass-loader',
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ function makeCommonConfig() {
|
|||
plugins: [
|
||||
new CopyPlugin({
|
||||
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" },
|
||||
],
|
||||
}),
|
||||
|
@ -65,7 +65,7 @@ function makeCommonConfig() {
|
|||
}),
|
||||
],
|
||||
entry: {
|
||||
main: "./src/client/main.tsx",
|
||||
main: "./webapp/src/main.tsx",
|
||||
},
|
||||
output: {
|
||||
filename: "static/[name].js",
|
||||
|
|
Loading…
Reference in a new issue