Skip to content
This repository was archived by the owner on Feb 22, 2021. It is now read-only.

Commit 92607b6

Browse files
committed
ci: resolve ci error
1 parent 54c807d commit 92607b6

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

build/main/webpack.prod.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import * as path from 'path'
2+
import * as webpack from 'webpack'
3+
const tslintConfig = require('../../tslint.json')
4+
5+
module.exports = {
6+
7+
entry: {
8+
'back-loader': [path.resolve(__dirname, '../../src/index.ts')],
9+
},
10+
11+
output: {
12+
path: path.resolve(__dirname, '../../release'),
13+
filename: '[name].js',
14+
},
15+
16+
resolve: {
17+
extensions: ['.ts', '.js'],
18+
},
19+
20+
module: {
21+
rules: [
22+
{
23+
test: /\.ts/,
24+
enforce: 'pre',
25+
exclude: /node_modules/,
26+
loader: 'tslint-loader',
27+
options: {
28+
configuration: tslintConfig,
29+
},
30+
},
31+
{
32+
test: /\.ts$/,
33+
loaders: [
34+
{
35+
loader: 'awesome-typescript-loader',
36+
options: { configFileName: path.resolve(__dirname, '../../tsconfig.json') },
37+
},
38+
],
39+
},
40+
],
41+
42+
exprContextCritical: false,
43+
},
44+
45+
plugins: [
46+
new webpack.NoEmitOnErrorsPlugin(),
47+
],
48+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run tsc:clean",
88
"ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run tsc:clean",
9-
"release": "tsc ./build/release/webpack.prod.ts && rm -rf release && webpack --config build/release/webpack.prod.js && npm run tsc:clean",
9+
"release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/release/webpack.prod.js && npm run tsc:clean",
1010
"tsc:clean": "find build -name '*.js' | xargs rm -f ",
1111
"clearup": "rm -rf dist & rm -rf release",
1212
"commit": "node_modules/commitizen/bin/commitizen init cz-conventional-changelog --save --save-exact",

0 commit comments

Comments
 (0)