-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some formatting changes i get from running `yarn format` in master
- Loading branch information
1 parent
e4c3f4b
commit a5aef86
Showing
5 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,5 @@ | |
"path": "../types" | ||
} | ||
], | ||
"include": [ | ||
"src" | ||
] | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import { resolve, dirname } from "path"; | ||
import { fileURLToPath } from "url"; | ||
import ResolveTypeScriptPlugin from "resolve-typescript-plugin"; | ||
import CopyWebpackPlugin from "copy-webpack-plugin"; | ||
import HtmlWebpackPlugin from "html-webpack-plugin"; | ||
import webpack from "webpack"; | ||
import CopyWebpackPlugin from 'copy-webpack-plugin'; | ||
import HtmlWebpackPlugin from 'html-webpack-plugin'; | ||
import { dirname, resolve } from 'path'; | ||
import ResolveTypeScriptPlugin from 'resolve-typescript-plugin'; | ||
import { fileURLToPath } from 'url'; | ||
import webpack from 'webpack'; | ||
|
||
export default { | ||
target: "web", | ||
mode: "production", | ||
target: 'web', | ||
mode: 'production', | ||
entry: { | ||
index: "./src/serve.ts", | ||
index: './src/serve.ts', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.tsx?$/, | ||
use: [{ loader: "ts-loader" }], | ||
} | ||
use: [{ loader: 'ts-loader' }], | ||
}, | ||
], | ||
}, | ||
output: { | ||
path: resolve(dirname(fileURLToPath(import.meta.url)), "./dest"), | ||
filename: "[name].js", | ||
chunkFilename: "[name].chunk.js", // This naming pattern is used for chunks produced from code-splitting. | ||
path: resolve(dirname(fileURLToPath(import.meta.url)), './dest'), | ||
filename: '[name].js', | ||
chunkFilename: '[name].chunk.js', // This naming pattern is used for chunks produced from code-splitting. | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ inject: false, template: "./src/index.html" }), | ||
new webpack.DefinePlugin({ "process.env.NODE_DEBUG": false }), | ||
new HtmlWebpackPlugin({ inject: false, template: './src/index.html' }), | ||
new webpack.DefinePlugin({ 'process.env.NODE_DEBUG': false }), | ||
], | ||
resolve: { | ||
plugins: [new ResolveTypeScriptPlugin()], | ||
}, | ||
devServer: { | ||
hot: false, | ||
client: { | ||
logging: "none", | ||
logging: 'none', | ||
overlay: false, | ||
}, | ||
headers: { | ||
"Cross-Origin-Opener-Policy": "same-origin", | ||
"Cross-Origin-Embedder-Policy": "require-corp", | ||
'Cross-Origin-Opener-Policy': 'same-origin', | ||
'Cross-Origin-Embedder-Policy': 'require-corp', | ||
}, | ||
}, | ||
}; |