forked from DigiLive/mushroom-strategy
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.
37 lines
683 B
TypeScript
37 lines
683 B
TypeScript
// 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;
|