@quicktvui/web-cli 1.0.0-beta.26 → 1.0.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/webpack.config.js +5 -1
- package/package.json +1 -1
package/lib/webpack.config.js
CHANGED
|
@@ -100,6 +100,10 @@ function detectCSSLoader() {
|
|
|
100
100
|
|
|
101
101
|
const cssLoader = detectCSSLoader()
|
|
102
102
|
|
|
103
|
+
// 获取 web-cli 目录下的 loader 路径
|
|
104
|
+
const cliDir = path.resolve(__dirname, '..')
|
|
105
|
+
const resolveLoader = (loaderName) => require.resolve(loaderName, { paths: [cliDir] })
|
|
106
|
+
|
|
103
107
|
// 入口文件:只加载 entry-package.js,主入口通过动态 import 加载
|
|
104
108
|
const entryPackageFile = path.resolve(__dirname, 'entry-package.js')
|
|
105
109
|
const entryFiles = ['regenerator-runtime/runtime', entryPackageFile]
|
|
@@ -196,7 +200,7 @@ module.exports = {
|
|
|
196
200
|
loader: 'vue-loader',
|
|
197
201
|
options: { compilerOptions: { whitespace: 'condense' } },
|
|
198
202
|
},
|
|
199
|
-
'scope-loader',
|
|
203
|
+
require.resolve('scope-loader', { paths: [path.resolve(__dirname, '..')] }),
|
|
200
204
|
],
|
|
201
205
|
},
|
|
202
206
|
// TypeScript 文件
|