Skip to content

Commit

Permalink
Merge branch 'release/v1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber69 committed Feb 17, 2020
2 parents 4593e6a + 75f550e commit c351843
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 69 deletions.
8 changes: 8 additions & 0 deletions .codeclimate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "2",
"exclude_patterns": [
"**/*.spec.ts"
],
"plugins": {
}
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"cSpell.enabledLanguageIds": [
"json",
"jsonc",
"markdown",
"plaintext",
"shellscript",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {

#### vue.config.js

If your Vue project does not yet contain *[vue.config.js](https://cli.vuejs.org/config/)*, please create one in the same
If your **Vue** project does not yet contain *[vue.config.js](https://cli.vuejs.org/config/)*, please create one in the same
folder as *package.json*. Otherwise, please adapt accordingly:

``` js
Expand Down
40 changes: 20 additions & 20 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"version": "0.1",
"language": "en",
"words": [
"Andreas",
"codebeat",
"unstyled"
],
"flagWords": [],
"dictionaries": [
"css",
"typescript"
],
"ignorePaths": [
"**/*.svg",
"dist/**",
"node_modules/**",
"package.json",
"package-lock.json",
"tsconfig.json"
]
"version": "0.1",
"language": "en",
"words": [
"Andreas",
"codebeat",
"unstyled"
],
"flagWords": [],
"dictionaries": [
"css",
"typescript"
],
"ignorePaths": [
"**/*.svg",
"dist/**",
"node_modules/**",
"package.json",
"package-lock.json",
"tsconfig.json"
]
}
1 change: 1 addition & 0 deletions doc/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"description": "Minimal webpack plugin that transforms links to css files such that they are loaded asynchronously.",
"homepage": "https://github.com/andreashuber69/async-css-plugin/blob/master/README.md#--",
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,23 +23,23 @@
"main": "dist/AsyncCssPlugin.js",
"types": "dist/AsyncCssPlugin.d.ts",
"scripts": {
"prebuild": "npm run lint",
"build": "webpack --mode production",
"prelint": "cspell '**/*.*' && markdownlint *.md",
"lint": "tslint --project tsconfig.json --config tslint.json --format verbose",
"prebuild": "npm run lint",
"build": "webpack --mode production",
"ci": "npm run build"
},
"devDependencies": {
"@types/html-webpack-plugin": "^3.2.2",
"@types/webpack": "^4.4.35",
"cspell": "^4.0.46",
"markdownlint-cli": "^0.21.0",
"terser-webpack-plugin": "^2.3.4",
"markdownlint-cli": "^0.22.0",
"terser-webpack-plugin": "^2.3.5",
"ts-loader": "^6.2.1",
"tslint": "^6.0.0",
"typescript": "^3.7.5",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
"dependencies": {},
"peerDependencies": {
Expand Down
12 changes: 5 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"compilerOptions": {
// Compilation options
"declaration": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"lib": [],
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"strict": true,
// Generation options
"declaration": true,
"outDir": "./dist/",
"sourceMap": true,
"target": "es2015"
"strict": true,
"target": "es2017"
}
}
}
12 changes: 2 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
const path = require("path");
const TerserPlugin = require('terser-webpack-plugin');
const TerserPlugin = require("terser-webpack-plugin");

module.exports = {
// cSpell: ignore devtool
devtool: 'source-map',
devtool: "source-map",
entry: "./src/AsyncCssPlugin.ts",
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
Expand All @@ -23,17 +21,11 @@ module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: true,
terserOptions: {
keep_classnames: true // We're using the class name in log output
}
}),
],
},
resolve: {
extensions: [".ts"],
},
target: "node"
};

0 comments on commit c351843

Please sign in to comment.