Skip to content

Commit 44cb5bf

Browse files
Merge pull request #4 from caktus/accommodate-webpack-stats
add support for django-webpack-loader
2 parents 5f08b90 + 88c4b46 commit 44cb5bf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ source_dir: "{{ root_dir }}/src"
44
project_user: "{{ project_name }}"
55
ignore_devdependencies: false
66
npm_run_command: build
7+
uses_webpack_loader: false

tasks/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@
2323
become_user: "{{ project_user }}"
2424
vars:
2525
ansible_ssh_pipelining: true
26+
27+
- name: cp webpack-stats.json webpack-stats-live.json
28+
command: cp webpack-stats.json webpack-stats-live.json
29+
args:
30+
chdir: "{{ source_dir }}"
31+
become_user: "{{ project_user }}"
32+
when: uses_webpack_loader

0 commit comments

Comments
 (0)