Skip to content
Snippets Groups Projects
Commit 3133d8ad authored by Jiří Helebrant's avatar Jiří Helebrant
Browse files

CI: build for GitLab Pages.

parent a78370a2
No related merge requests found
Pipeline #11089 failed with stages
in 1 minute and 39 seconds
build:
pages:
image: node:8
script:
- npm install --silent
- npm run build
artifacts:
paths:
- dist/
- public
lint_js:
image: node:8
......
......@@ -22,4 +22,4 @@ npm install
npm run build
```
Processed files are placed in `dist/`, and can be used with any webserver (eg. `cd dist; python -m http.server`).
Processed files are placed in `public/`, and can be used with any webserver (eg. `cd public; python -m http.server`).
......@@ -58,7 +58,7 @@ module.exports = {
polyfills: ["./src/polyfills.ts"]
},
output: {
path: path.join(process.cwd(), "dist"),
path: path.join(process.cwd(), "public"),
publicPath: "/",
filename:
process.env.NODE_ENV === "production"
......@@ -185,7 +185,7 @@ module.exports = {
historyApiFallback: true,
stats: "minimal",
watchOptions: {
ignored: /node_modules|dist/
ignored: /node_modules|public/
}
}
};
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment