aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js29
1 files changed, 25 insertions, 4 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 80d77b400..6067d94e7 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -119,8 +119,25 @@ module.exports = function (options) {
119 119
120 { 120 {
121 test: /\.(sass|scss)$/, 121 test: /\.(sass|scss)$/,
122 use: ['css-to-string-loader', 'css-loader?sourceMap', 'resolve-url-loader', 'sass-loader?sourceMap'], 122 use: [
123 exclude: [ helpers.root('src', 'styles') ] 123 'css-to-string-loader',
124 'css-loader?sourceMap',
125 'resolve-url-loader',
126 {
127 loader: 'sass-loader',
128 options: {
129 sourceMap: true
130 }
131 },
132 {
133 loader: 'sass-resources-loader',
134 options: {
135 resources: [
136 helpers.root('src/sass/_variables.scss')
137 ]
138 }
139 }
140 ]
124 }, 141 },
125 { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' }, 142 { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' },
126 { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' }, 143 { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' },
@@ -133,7 +150,10 @@ module.exports = function (options) {
133 { 150 {
134 test: /\.html$/, 151 test: /\.html$/,
135 loader: 'raw-loader', 152 loader: 'raw-loader',
136 exclude: [ helpers.root('src/index.html'), helpers.root('src/standalone/videos/embed.html') ] 153 exclude: [
154 helpers.root('src/index.html'),
155 helpers.root('src/standalone/videos/embed.html')
156 ]
137 } 157 }
138 158
139 ] 159 ]
@@ -262,7 +282,8 @@ module.exports = function (options) {
262 new LoaderOptionsPlugin({ 282 new LoaderOptionsPlugin({
263 options: { 283 options: {
264 sassLoader: { 284 sassLoader: {
265 precision: 10 285 precision: 10,
286 includePaths: [ helpers.root('src/sass') ]
266 } 287 }
267 } 288 }
268 }), 289 }),