diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e837af7a1d19f0bdf687a278b69213895ff07a49..e6c5349058299a537dc527f57f6b8bad400999da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,11 @@ -build: +pages: image: node:8 script: - npm install --silent - npm run build artifacts: paths: - - dist/ + - public lint_js: image: node:8 diff --git a/README.md b/README.md index fded2c5a515d2ab2f274224dbc1b125c5801ee40..44e8fbe7876a9f61d70b8b3190b6fc7cd2520b5f 100644 --- a/README.md +++ b/README.md @@ -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`). diff --git a/webpack.config.js b/webpack.config.js index f1bd85a51a4524e426bb4b9a26dd4c2a9113c499..72111483c235b69b8e3eef04f851090bb4aca02f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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/ } } };