forked from DigiLive/mushroom-strategy
Refactor JavaScript to TypeScript (#81)
Other changes include: * Add Vacuum Card and View. * Add hiding a view if no device is configured for it. Closes #24. * Add icon to HomeView configuration. * Add version output to console. * Add version bumper. * Add .editorconfig settings. * Refactor README, because the information moved to the repository's Wiki. Closes #87.
This commit is contained in:
1 parent
c8a9cd5618
commit
82a91c3bd4
120 files changed
+6349
-4399
No files matched your search
@@ -0,0 +1,36 @@
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
import path from 'path';
|
||||
import webpack from 'webpack';
|
||||
|
||||
const config: webpack.Configuration = {
|
||||
entry: "./src/mushroom-strategy.ts",
|
||||
mode: "development",
|
||||
devtool: "source-map",
|
||||
output: {
|
||||
filename: "mushroom-strategy.js",
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js"],
|
||||
},
|
||||
optimization: {
|
||||
minimize: false,
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: "ts-loader",
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.LimitChunkCountPlugin({
|
||||
maxChunks: 1,
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in new issue
Block a user