Skip to content

Commit 52efd8e

Browse files
committed
remove rollup
using tsc to build project and ignore build folder
1 parent 74bd293 commit 52efd8e

File tree

7 files changed

+12
-316
lines changed

7 files changed

+12
-316
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ typings/
6161
.next
6262
/.idea
6363
/.rpt2_cache
64+
/build

index.d.ts

-23
This file was deleted.

index.js

-52
This file was deleted.

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "html-inline-css-webpack-plugin",
33
"version": "0.0.1",
44
"description": "",
5-
"main": "./index.js",
6-
"types": "./index.d.ts",
5+
"main": "./build/index.js",
6+
"types": "./build/index.d.ts",
77
"scripts": {
8-
"build": "rollup -c"
8+
"build": "rm -rf ./build && tsc"
99
},
1010
"repository": {
1111
"type": "git",
@@ -20,8 +20,6 @@
2020
"homepage": "https://github.com/Runjuu/html-inline-css-webpack-plugin#readme",
2121
"devDependencies": {
2222
"@types/webpack": "^4.4.0",
23-
"rollup": "^0.60.1",
24-
"rollup-plugin-typescript2": "^0.14.0",
2523
"tslib": "^1.9.2",
2624
"typescript": "^2.9.1",
2725
"webpack": "^4.11.1"

rollup.config.js

-11
This file was deleted.

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"compilerOptions": {
3+
"outDir": "build/",
34
"declaration": true,
45
"target": "es5",
5-
"module": "ES2015",
6+
"module": "UMD",
67
"sourceMap": true,
78
"experimentalDecorators": true,
89
"lib": ["dom", "es2015", "es2016"],

0 commit comments

Comments
 (0)