Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "dickly", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": { | ||
@@ -10,5 +10,7 @@ "type": "git", | ||
"dev": "webpack-dev-server --mode=development", | ||
"build": "webpack" | ||
"build": "tsc --outDir build && mkdir -p build/src/styles && find ./src/styles -name '*.less' -exec cp -prv '{}' './build/src/styles/' ';'", | ||
"build-example": "webpack --mode=production" | ||
}, | ||
"main": "src/index.ts", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"dependencies": { | ||
@@ -18,2 +20,3 @@ "@types/react": "16.3.14", | ||
"@types/three": "^0.91.10", | ||
"declaration-bundler-webpack-plugin": "^1.0.3", | ||
"react": "^16.3.2", | ||
@@ -20,0 +23,0 @@ "react-addons-update": "^15.6.2", |
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "esnext", | ||
"target": "es6", | ||
"module": "es6", | ||
"allowSyntheticDefaultImports": true, | ||
@@ -12,4 +12,5 @@ "noImplicitAny": false, | ||
"node_modules", | ||
"example", | ||
"libs" | ||
] | ||
} |
const path = require('path'); | ||
// const DeclarationBundlerPlugin = require('declaration-bundler-webpack-plugin'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const debug = process.env.NODE_ENV !== 'production'; | ||
const entries = { | ||
index: './example/index.tsx', | ||
}; | ||
module.exports = { | ||
module.exports = env => ({ | ||
entry: entries, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].js', | ||
filename: "[name].js" | ||
}, | ||
@@ -20,4 +19,4 @@ module: { | ||
test: /\.tsx?$/, | ||
use: 'ts-loader', | ||
exclude: /node_modules/, | ||
use: "ts-loader", | ||
exclude: /node_modules/ | ||
}, | ||
@@ -27,28 +26,29 @@ { | ||
use: [ | ||
{loader: "style-loader"}, | ||
{ | ||
loader: 'typings-for-css-modules-loader', | ||
query: { | ||
modules: true, | ||
namedExport: true, | ||
localIdentName: '[name]_[local]_[hash:base64:5]' | ||
} | ||
}, | ||
{loader: "less-loader"}, | ||
{ loader: "style-loader" }, | ||
{ | ||
loader: "typings-for-css-modules-loader", | ||
query: { | ||
modules: true, | ||
namedExport: true, | ||
localIdentName: "[name]_[local]_[hash:base64:5]" | ||
} | ||
}, | ||
{ loader: "less-loader" } | ||
] | ||
} | ||
], | ||
] | ||
}, | ||
resolve: { | ||
extensions: [ '.ts', '.tsx', '.js' ] | ||
extensions: [".ts", ".tsx", ".js"] | ||
}, | ||
plugins: [ | ||
...Object.keys(entries).map(i => ( | ||
new HtmlWebpackPlugin({ | ||
filename: `./${i}.html`, | ||
chunks: [i], | ||
template: `./example/${i}.html`, | ||
}) | ||
)), | ||
], | ||
}; | ||
...Object.keys(entries).map( | ||
i => | ||
new HtmlWebpackPlugin({ | ||
filename: `./${i}.html`, | ||
chunks: [i], | ||
template: `./example/${i}.html` | ||
}) | ||
) | ||
] | ||
}); |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
320575
43
4140
0
8
+ Addeddeclaration-bundler-webpack-plugin@1.0.3(transitive)