mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
use compiled typescript instead of ts-loader to generate minified versions
This commit is contained in:
parent
0a01d0e0e7
commit
2b4d45349f
@ -74,7 +74,6 @@
|
|||||||
"nyc": "^13.1.0",
|
"nyc": "^13.1.0",
|
||||||
"rollup": "^0.67.3",
|
"rollup": "^0.67.3",
|
||||||
"source-map-support": "^0.5.9",
|
"source-map-support": "^0.5.9",
|
||||||
"ts-loader": "^5.3.1",
|
|
||||||
"ts-node": "^7.0.1",
|
"ts-node": "^7.0.1",
|
||||||
"tslint": "^5.11.0",
|
"tslint": "^5.11.0",
|
||||||
"typedoc": "^0.13.0",
|
"typedoc": "^0.13.0",
|
||||||
|
@ -5,17 +5,12 @@ const { paths } = require('./webpack.parts.js')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
entry: paths.entry,
|
entry: paths.entry,
|
||||||
mode: 'none',
|
mode: 'none',
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{ test: /\.tsx?$/, loader: "ts-loader" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: true,
|
minimize: true,
|
||||||
noEmitOnErrors: true
|
noEmitOnErrors: true
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js','.ts'],
|
extensions: ['.js'],
|
||||||
modules: ['node_modules'],
|
modules: ['node_modules'],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ const production = require('./webpack.production.js')
|
|||||||
const AddVendorsPlugin = require('./plugins/add-vendors-plugin')
|
const AddVendorsPlugin = require('./plugins/add-vendors-plugin')
|
||||||
|
|
||||||
const paths = {
|
const paths = {
|
||||||
entry: path.resolve(__dirname, './src/squid.ts'),
|
entry: path.resolve(__dirname, './dist/node/squid.js'),
|
||||||
bundle: path.resolve(__dirname, 'dist/browser'),
|
bundle: path.resolve(__dirname, 'dist/browser'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user