Skip to content

Commit 73066b3

Browse files
committedJun 19, 2018
add build script to playground
1 parent d8335c0 commit 73066b3

9 files changed

+9
-3
lines changed
 

‎playground/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/public/vs
2+
/public/bundle.js

‎playground/Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build:
2+
npm install
3+
rm -rf ./public/vs
4+
cp -r node_modules/monaco-editor/min/vs ./public/
5+
npm run build

‎playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pdfjs-playground",
33
"private": "true",
44
"scripts": {
5-
"build": "webpack --progress --colors --config webpack.config.js"
5+
"build": "webpack --config webpack.config.js"
66
},
77
"devDependencies": {
88
"babel-core": "^6.24",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎playground/vs

-1
This file was deleted.

‎playground/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
mode: 'production',
1010

1111
output: {
12-
path: __dirname,
12+
path: path.join(__dirname, 'public'),
1313
filename: 'bundle.js',
1414
},
1515

0 commit comments

Comments
 (0)
Please sign in to comment.