Skip to content

Commit 10ebeca

Browse files
authored
BC/chore: Update minimum Node.js version from 8 to 10, update we… (Kocal#525)
* update copy-webpack-plugin * update webpack-plugin * feat: specify Node minimum version * fix: update Node.js minimum version to 10 * forgot appveyor * update css-loader * update file-loader * update mini-css-extract-plugin
1 parent 2c0018e commit 10ebeca

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cache:
1111
- '%USERPROFILE%\.cache'
1212

1313
install:
14-
- ps: Install-Product node 8
14+
- ps: Install-Product node 10
1515
- ps: Install-Module -Name PSWriteColor
1616
- ps: Install-Module -Name Assert
1717
- npm install -g yarn vue-cli

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ cache:
1111
- examples/minimal/node_modules
1212

1313
node_js:
14-
- "8"
14+
- "10"
15+
- "12"
16+
- "node"
1517

1618
env:
1719
- VUE_TEMPLATES="minimal full full-airbnb"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This template allows you to quickly start a web extension containing:
2121

2222
## Requirements
2323

24-
- Node.js >= 8 and npm >= 5
24+
- Node.js >= 10 and npm >= 5
2525
- [git](https://git-scm.com)
2626
- [vue-cli 2](https://github.com/vuejs/vue-cli/tree/v2)
2727

template/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "{{ description }}",
55
"author": "{{ author }}",
66
{{#if license}}"license": "{{ license }}",{{/if}}
7+
"engines": {
8+
"node": ">=10"
9+
},
710
"scripts": {
811
{{#lint}}
912
"lint": "eslint --ext .js,.vue src",
@@ -82,19 +85,19 @@
8285
"@babel/preset-env": "^7.1.0",
8386
"@babel/runtime-corejs3": "^7.4.0",
8487
"babel-loader": "^8.0.2",
85-
"copy-webpack-plugin": "^4.5.3",
88+
"copy-webpack-plugin": "^5.1.1",
8689
"core-js": "^3.0.1",
8790
"cross-env": "^5.2.0",
88-
"css-loader": "^2.1.1",
91+
"css-loader": "^3.4.0",
8992
"ejs": "^2.6.1",
90-
"file-loader": "^1.1.11",
91-
"mini-css-extract-plugin": "^0.4.4",
93+
"file-loader": "^5.0.2",
94+
"mini-css-extract-plugin": "^0.9.0",
9295
"node-sass": "^4.9.3",
9396
"sass-loader": "^7.1.0",
9497
"vue-loader": "^15.4.2",
9598
"vue-template-compiler": "^2.6.10",
9699
"webpack": "^4.20.2",
97-
"webpack-cli": "^3.1.2",
100+
"webpack-cli": "^3.3.10",
98101
"webpack-extension-reloader": "^1.1.0"
99102
}
100103
}

template/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const webpack = require('webpack');
22
const ejs = require('ejs');
33
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4-
const CopyWebpackPlugin = require('copy-webpack-plugin');
4+
const CopyPlugin = require('copy-webpack-plugin');
55
const ExtensionReloader = require('webpack-extension-reloader');
66
const { VueLoaderPlugin } = require('vue-loader');
77
const { version } = require('./package.json');
@@ -72,7 +72,7 @@ const config = {
7272
new MiniCssExtractPlugin({
7373
filename: '[name].css',
7474
}),
75-
new CopyWebpackPlugin([
75+
new CopyPlugin([
7676
{ from: 'icons', to: 'icons', ignore: ['icon.xcf'] },
7777
{ from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml },{{#options}}
7878
{ from: 'options/options.html', to: 'options/options.html', transform: transformHtml },{{/options}}

0 commit comments

Comments
 (0)