create-miro-app
Advanced tools
Comparing version 0.1.7 to 0.2.0
@@ -5,6 +5,8 @@ /** | ||
interface Window { | ||
miro: SDK.Root; | ||
declare global { | ||
var miro: SDK.Root; | ||
} | ||
export {}; | ||
/** | ||
@@ -11,0 +13,0 @@ * Here you will find a full reference to all publicly available methods in |
@@ -55,3 +55,7 @@ const path = require('path'); | ||
{ | ||
test: /\.(png|jpg|gif)$/i, | ||
test: /\.html$/i, | ||
loader: 'html-loader', | ||
}, | ||
{ | ||
test: /\.(png|jpg|jpeg|gif)$/i, | ||
type: 'asset/resource', | ||
@@ -71,3 +75,4 @@ }, | ||
...Object.keys(entries).map((entry) => { | ||
const sharedHtmlSettings = { | ||
return new HtmlWebpackPlugin({ | ||
view: entry, | ||
chunks: [entry], | ||
@@ -78,8 +83,4 @@ inject: 'body', | ||
}, | ||
template: `./src/index.html`, | ||
}; | ||
return new HtmlWebpackPlugin({ | ||
...sharedHtmlSettings, | ||
...(entry === 'index' ? {} : {filename: `${entry}.html`}), | ||
template: `./src/${entry}.html`, | ||
filename: `${entry}.html`, | ||
}); | ||
@@ -86,0 +87,0 @@ }), |
@@ -57,3 +57,7 @@ const path = require('path'); | ||
{ | ||
test: /\.(png|jpg|gif)$/i, | ||
test: /\.html$/i, | ||
loader: 'html-loader', | ||
}, | ||
{ | ||
test: /\.(png|jpg|jpeg|gif)$/i, | ||
type: 'asset/resource', | ||
@@ -73,3 +77,4 @@ }, | ||
...Object.keys(entries).map((entry) => { | ||
const sharedHtmlSettings = { | ||
return new HtmlWebpackPlugin({ | ||
view: entry, | ||
chunks: [entry], | ||
@@ -80,8 +85,4 @@ inject: 'body', | ||
}, | ||
template: `./src/index.html`, | ||
}; | ||
return new HtmlWebpackPlugin({ | ||
...sharedHtmlSettings, | ||
...(entry === 'index' ? {} : {filename: `${entry}.html`}), | ||
template: `./src/${entry}.html`, | ||
filename: `${entry}.html`, | ||
}); | ||
@@ -88,0 +89,0 @@ }), |
{ | ||
"name": "create-miro-app", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "miro", |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
559979
23
2227