Skip to content

Commit abaf889

Browse files
Fix folder naming (#347)
1 parent 9c7d3f9 commit abaf889

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"typings": "index.d.ts",
77
"scripts": {
88
"test": "jest",
9-
"start": "TARGET=dev:js NODE_ENV=development webpack-dev-server --progress",
10-
"start:css": "TARGET=dev:css NODE_ENV=development webpack-dev-server --progress",
9+
"start": "TARGET=dev_js NODE_ENV=development webpack-dev-server --progress",
10+
"start:css": "TARGET=dev_css NODE_ENV=development webpack-dev-server --progress",
1111
"build": "npm run build:js && npm run build:css",
12-
"build:js": "TARGET=build:js NODE_ENV=production webpack -p --progress",
13-
"build:css": "TARGET=build:css NODE_ENV=production webpack -p --progress && rm ./main.js",
12+
"build:js": "TARGET=build_js NODE_ENV=production webpack -p --progress",
13+
"build:css": "TARGET=build_css NODE_ENV=production webpack -p --progress && rm ./main.js",
1414
"prepublishOnly": "npm run build",
1515
"analyze": "TARGET=analyze NODE_ENV=production webpack -p --progress"
1616
},
File renamed without changes.
File renamed without changes.

webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ const common = {
3838
}
3939
};
4040

41-
if (TARGET === 'dev:js' || TARGET === 'dev:css') {
41+
if (TARGET === 'dev_js' || TARGET === 'dev_css') {
4242
module.exports = merge(common, {
4343
mode: 'development',
4444
entry: {
45-
'demo': path.resolve(ROOT_PATH, 'test/'+TARGET+'/demo.js')
45+
'demo': path.resolve(ROOT_PATH, 'test/' + TARGET + '/demo.js')
4646
},
4747
devtool: 'inline-source-map',
4848
devServer: {
@@ -75,7 +75,7 @@ if (TARGET === 'dev:js' || TARGET === 'dev:css') {
7575
});
7676
}
7777

78-
if (TARGET === 'build:js' || TARGET === 'analyze') {
78+
if (TARGET === 'build_js' || TARGET === 'analyze') {
7979
module.exports = merge(common, {
8080
mode: 'production',
8181
optimization: {},
@@ -106,7 +106,7 @@ if (TARGET === 'build:js' || TARGET === 'analyze') {
106106
});
107107
}
108108

109-
if (TARGET === 'build:css') {
109+
if (TARGET === 'build_css') {
110110
module.exports = merge(common, {
111111
entry: [
112112
'./src/style/style.less',

0 commit comments

Comments
 (0)