|
|
@@ -455,6 +455,10 @@ module.exports = function(webpackEnv) {
|
|
|
'sass-loader'
|
|
|
),
|
|
|
},
|
|
|
+ {
|
|
|
+ test: /\.scss$/,
|
|
|
+ loaders: ['style-loader', 'css-loader', 'sass-loader'],
|
|
|
+ },
|
|
|
// "file" loader makes sure those assets get served by WebpackDevServer.
|
|
|
// When you `import` an asset, you get its (virtual) filename.
|
|
|
// In production, they would get copied to the `build` folder.
|
|
|
@@ -466,7 +470,7 @@ module.exports = function(webpackEnv) {
|
|
|
// its runtime that would otherwise be processed through "file" loader.
|
|
|
// Also exclude `html` and `json` extensions so they get processed
|
|
|
// by webpacks internal loaders.
|
|
|
- exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
|
|
|
+ exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/,/\.scss$/],
|
|
|
options: {
|
|
|
name: 'static/media/[name].[hash:8].[ext]',
|
|
|
},
|