Recipes & known issues
Aurelia CLI Bundler + Docker
// watch.js const gulp = require('gulp'); const watch = require('gulp-watch'); function watchPath(path, tasks) { return watch(path, { usePolling: true, // Enable polling for Docker interval: 1000 // Check every second }, gulp.series(tasks)); } function watch() { return watchPath('src/**/*.{js,html,css}', 'build'); } module.exports = { default: watch, watchPath };FROM node:14 WORKDIR /app COPY package*.json ./ RUN npm install COPY . . # Enable file watching with polling ENV CHOKIDAR_USEPOLLING=true ENV CHOKIDAR_INTERVAL=1000 RUN au build --env prod CMD ["npm", "start"]# docker-compose.yml version: '3.8' services: aurelia-app: build: . ports: - "8080:8080" volumes: - .:/app - /app/node_modules environment: - CHOKIDAR_USEPOLLING=true command: au run --watch
NPM Uninstalling Packages
NPM Version Compatibility Issues
Building with TFS (Team Foundation Server)
Last updated
Was this helpful?