|
@@ -178,13 +178,9 @@ module.exports = {
|
|
|
productionSourceMap: false,
|
|
|
css: {
|
|
|
requireModuleExtension: true,
|
|
|
- sourceMap: true,
|
|
|
+ sourceMap: false,
|
|
|
loaderOptions: {
|
|
|
scss: {
|
|
|
- /*sass-loader 8.0语法 */
|
|
|
- //prependData: '@import "~@/styles/variables.scss";',
|
|
|
-
|
|
|
- /*sass-loader 9.0写法,感谢github用户 shaonialife*/
|
|
|
additionalData(content, loaderContext) {
|
|
|
const { resourcePath, rootContext } = loaderContext
|
|
|
const relativePath = path.relative(rootContext, resourcePath)
|