diff --git a/src/app.tsx b/src/app.tsx index c747017..7c86b68 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,13 +1,12 @@ import { Text, Window, hot, View } from "@nodegui/react-nodegui"; import React from "react"; import { QIcon } from "@nodegui/nodegui"; -import path from "path"; import { StepOne } from "./components/stepone"; import { StepTwo } from "./components/steptwo"; import nodeguiIcon from "../assets/nodegui.jpg"; const minSize = { width: 500, height: 520 }; -const winIcon = new QIcon(path.resolve(__dirname, nodeguiIcon)); +const winIcon = new QIcon(nodeguiIcon); class App extends React.Component { render() { return ( diff --git a/webpack.config.js b/webpack.config.js index dfb8f98..30f1028 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -27,8 +27,13 @@ module.exports = (env, argv) => { } }, { - test: /\.(png|jpe?g|gif|svg|bmp)$/i, - use: [{ loader: "file-loader" }] + test: /\.(png|jpe?g|gif|svg|bmp|otf)$/i, + use: [{ + loader: "file-loader", + options: { + publicPath: "dist" + } + }] }, { test: /\.node/i,