Advertisement
Guest User

webpack.yml

a guest
Nov 17th, 2017
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. # Note: You must restart bin/webpack-dev-server for changes to take effect
  2.  
  3. default: &default
  4.   source_path: app/javascript
  5.   source_entry_path: packs
  6.   public_output_path: packs
  7.   cache_path: tmp/cache/webpacker
  8.  
  9.   # Additional paths webpack should lookup modules
  10.   # ['app/assets', 'engine/foo/app/assets']
  11.   resolved_paths: []
  12.  
  13.   # Reload manifest.json on all requests so we reload latest compiled packs
  14.   cache_manifest: false
  15.  
  16.   extensions:
  17.    - .coffee
  18.     - .erb
  19.     - .js
  20.     - .jsx
  21.     - .ts
  22.     - .vue
  23.     - .sass
  24.     - .scss
  25.     - .css
  26.     - .png
  27.     - .svg
  28.     - .gif
  29.     - .jpeg
  30.     - .jpg
  31.  
  32. development:
  33.   <<: *default
  34.   compile: true
  35.  
  36.   # Reference: https://webpack.js.org/configuration/dev-server/
  37.   dev_server:
  38.     https: false
  39.     host: localhost
  40.     port: 3035
  41.     public: localhost:3035
  42.     hmr: false
  43.     # Inline should be set to true if using HMR
  44.     inline: true
  45.     overlay: true
  46.     disable_host_check: true
  47.     use_local_ip: false
  48.  
  49. test:
  50.   <<: *default
  51.   compile: true
  52.  
  53.   # Compile test packs to a separate directory
  54.   public_output_path: packs-test
  55.  
  56. production:
  57.   <<: *default
  58.  
  59.   # Production depends on precompilation of packs prior to booting for performance.
  60.   compile: false
  61.  
  62.   # Cache manifest.json for performance
  63.   cache_manifest: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement