Moved uno game js to root, cleanup
This commit is contained in:
parent
9ce3570638
commit
958f1d5374
@ -16,7 +16,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<!-- JS -->
|
<!-- JS -->
|
||||||
<script src='js/uno_game.js'></script>
|
<script src='uno_game.js'></script>
|
||||||
|
|
||||||
<!-- favicon -->
|
<!-- favicon -->
|
||||||
<link rel="icon" href="src/images/card_back.svg" type="image/icon type">
|
<link rel="icon" href="src/images/card_back.svg" type="image/icon type">
|
||||||
|
|||||||
@ -9,7 +9,7 @@ module.exports = {
|
|||||||
mode: "development", // "production" | "development" | "none"
|
mode: "development", // "production" | "development" | "none"
|
||||||
entry: "./src/index.js", // string | object | array
|
entry: "./src/index.js", // string | object | array
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "js"), // string (default)
|
path: path.resolve(__dirname, "."), // string (default)
|
||||||
filename: "uno_game.js", // string (default)
|
filename: "uno_game.js", // string (default)
|
||||||
//publicPath: "/assets/", // string
|
//publicPath: "/assets/", // string
|
||||||
uniqueName: "uno-game", // (defaults to package.json "name")
|
uniqueName: "uno-game", // (defaults to package.json "name")
|
||||||
@ -21,25 +21,19 @@ module.exports = {
|
|||||||
test: /\.scss$/i,
|
test: /\.scss$/i,
|
||||||
use: ['style-loader', 'css-loader', 'sass-loader'],
|
use: ['style-loader', 'css-loader', 'sass-loader'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Use url-loader to tranform images into base64 URIs
|
||||||
{
|
{
|
||||||
//test: /\.(png|svg|jpe?g|gif)$/i,
|
//test: /\.(png|svg|jpe?g|gif)$/i,
|
||||||
test: /\.(png|jpe?g|gif)$/i,
|
test: /\.(png|jpe?g|gif)$/i,
|
||||||
//type: 'asset/resource',
|
|
||||||
use: [
|
use: [
|
||||||
{
|
{
|
||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
//use: [
|
|
||||||
// {
|
|
||||||
// loader: 'file-loader',
|
|
||||||
// options: {
|
|
||||||
// name: '[name].[ext]',
|
|
||||||
// outputPath : 'images/',
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
//],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Use mini-svg-data-uri to compress
|
||||||
{
|
{
|
||||||
test: /\.svg$/i,
|
test: /\.svg$/i,
|
||||||
use: [
|
use: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user