Skip to content

Commit

Permalink
🔧 Add basic webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Feb 5, 2020
1 parent 1d1ae28 commit ce1e4ab
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -32,6 +32,7 @@
"build-package": "gulp build",
"build-site": "site",
"build-demo": "parcel build demo/index.html",
"build-browser": "tsc --lib es6 webpack.config.ts && webpack --config webpack.config.js",
"demo": "parcel demo/index.html",
"lint": "prettier '**/*.{ts,scss}' --write",
"serve-site": "site --serve",
Expand All @@ -47,6 +48,7 @@
"@rollup/plugin-typescript": "^2.1.0",
"@staart/site": "^1.13.3",
"@types/jest": "^24.9.1",
"@types/webpack": "^4.41.5",
"auto-i18n": "^1.0.0",
"coveralls": "^3.0.9",
"cssnano": "^4.1.10",
Expand All @@ -66,6 +68,7 @@
"typedoc": "^0.16.8",
"typescript": "^3.7.5",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"xhr-mock": "^2.5.1"
},
"dependencies": {
Expand Down
129 changes: 129 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions webpack.config.ts
@@ -0,0 +1,13 @@
import { Configuration } from "webpack";
import { resolve } from "path";

const config: Configuration = {
mode: "production",
entry: "./src/browser.ts",
output: {
filename: "anand-browser.js",
path: resolve(__dirname, "dist")
}
};

export default config;

0 comments on commit ce1e4ab

Please sign in to comment.