Skip to content

Commit a4a7942

Browse files
committed
fix(cli): mini css
1 parent 123c233 commit a4a7942

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: packages/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@wya/vm": "^2.0.0-alpha.46",
4848
"babel-loader": "^8.1.0",
4949
"babel-plugin-syntax-jsx": "^6.18.0",
50-
"babel-plugin-transform-vue-jsx": "^3.7.0",
50+
"babel-plugin-transform-vue-jsx": "^4.0.1",
5151
"cac": "^6.5.6",
5252
"chalk": "^3.0.0",
5353
"chokidar": "^3.3.1",
@@ -68,7 +68,7 @@
6868
"vue-loader": "^15.9.3",
6969
"vue-style-loader": "^4.1.2",
7070
"vue-template-compiler": "^2.6.12",
71-
"webpack": "^4.44.2",
71+
"webpack": "~4.43.0",
7272
"webpack-cli": "^3.3.12",
7373
"webpack-dev-server": "^3.11.0",
7474
"webpack-merge": "^5.1.4"

Diff for: packages/cli/src/sfc/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const webpack = require('webpack');
55
const { merge } = require('webpack-merge');
66
const VueLoaderPlugin = require('vue-loader/lib/plugin');
77
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
8-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
8+
// const MiniCssExtractPlugin = require('mini-css-extract-plugin');
99

1010
const { resolve } = path;
1111
const cwd = process.cwd();

Diff for: packages/cli/src/sfc/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ const getHTMLConfig = () => {
8181
let openPage = {};
8282
Object.keys(entry).forEach((key) => {
8383
let fullpath = entry[key];
84-
openPage[key] = `/demo/${key}`.replace(/\.js/, '.html');
84+
openPage[key] = `/demo/${key}`.replace(/\.(js|vue)/, '.html');
8585
htmls.push(
8686
new HtmlWebpackPlugin({
8787
__DEV__: true,
8888
template: path.resolve(__dirname, 'templates/tpl.ejs'),
8989
chunks: [key],
9090
inject: 'body',
91-
filename: `demo/${key.replace(/\.js/, '.html')}`
91+
filename: `demo/${key.replace(/\.(js|vue)/, '.html')}`
9292
})
9393
);
9494
});

0 commit comments

Comments
 (0)