File: rules

package info (click to toggle)
node-vue-resource 1.5.3%2Bdfsg%2B~1.3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 684 kB
  • sloc: javascript: 1,501; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# -*- makefile -*-


%:
	dh $@

override_dh_auto_build:
#commonjs
	webpack --config debian/webpack.config.js --mode development \
	--entry ./src/index.js --output-path ./dist --output-filename vue-resource.common.js \
	--output-library-type commonjs \
	--module-rules-use 'babel-loader'
#umd
	webpack --config debian/webpack.config.js --mode development \
	--entry ./src/index.js --output-path ./dist --output-filename vue-resource.js --target web \
	--output-library VueResource --output-library-type umd \
	--module-rules-use 'babel-loader'
	terser dist/vue-resource.js -o dist/vue-resource.min.js