1
0
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:
Sebastian Gerske 2018-11-28 12:12:58 +01:00
parent 0a01d0e0e7
commit 2b4d45349f
3 changed files with 2 additions and 8 deletions

View File

@ -74,7 +74,6 @@
"nyc": "^13.1.0",
"rollup": "^0.67.3",
"source-map-support": "^0.5.9",
"ts-loader": "^5.3.1",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typedoc": "^0.13.0",

View File

@ -5,17 +5,12 @@ const { paths } = require('./webpack.parts.js')
module.exports = {
entry: paths.entry,
mode: 'none',
module: {
rules: [
{ test: /\.tsx?$/, loader: "ts-loader" }
]
},
optimization: {
minimize: true,
noEmitOnErrors: true
},
resolve: {
extensions: ['.js','.ts'],
extensions: ['.js'],
modules: ['node_modules'],
},
}

View File

@ -9,7 +9,7 @@ const production = require('./webpack.production.js')
const AddVendorsPlugin = require('./plugins/add-vendors-plugin')
const paths = {
entry: path.resolve(__dirname, './src/squid.ts'),
entry: path.resolve(__dirname, './dist/node/squid.js'),
bundle: path.resolve(__dirname, 'dist/browser'),
}