Skip to content
This repository was archived by the owner on Nov 3, 2020. It is now read-only.

Commit ed909e4

Browse files
committedOct 29, 2017
v1.1
1 parent 9c6e864 commit ed909e4

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed
 

‎manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "UI Stack",
44
"description": "A Chrome extension that lets you see a website's framework and libraries",
5-
"version": "1.0",
5+
"version": "1.1",
66
"author": "Stanislav Iliev",
77
"permissions": [
88
"activeTab",

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"author": "gigobyte <gigobest2@gmail.com>",
1212
"license": "MIT",
1313
"scripts": {
14-
"build": "webpack -w"
14+
"build": "webpack -w",
15+
"build-release": "webpack --config webpack.config.production.js"
1516
},
1617
"dependencies": {
1718
"@types/chrome": "^0.0.50"

‎webpack.config.production.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const path = require('path')
2+
const webpack = require('webpack')
3+
4+
module.exports = {
5+
entry: {
6+
content: path.resolve(__dirname, 'src', 'content.ts'),
7+
popup: path.resolve(__dirname, 'src', 'popup.ts'),
8+
checker: path.resolve(__dirname, 'src', 'checker.ts')
9+
},
10+
output: {
11+
path: path.resolve(__dirname, 'build'),
12+
filename: '[name].js'
13+
},
14+
module: {
15+
rules: [
16+
{
17+
test: /\.ts$/,
18+
exclude: /node_modules/,
19+
loader: 'ts-loader'
20+
}
21+
]
22+
},
23+
resolve: {
24+
modules: [
25+
path.resolve(__dirname, 'src')
26+
],
27+
extensions: ['.js', '.ts']
28+
},
29+
plugins: [
30+
new webpack.DefinePlugin({
31+
'process.env.NODE_ENV': JSON.stringify('production')
32+
}),
33+
new webpack.optimize.AggressiveMergingPlugin()
34+
]
35+
}

0 commit comments

Comments
 (0)
This repository has been archived.