Skip to content

Instantly share code, notes, and snippets.

@shobishani
Created July 9, 2019 14:21
Show Gist options
  • Save shobishani/fa64288deed2784059568a1ef0c489d6 to your computer and use it in GitHub Desktop.
Save shobishani/fa64288deed2784059568a1ef0c489d6 to your computer and use it in GitHub Desktop.
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'tslint-loader',
enforce: 'pre',
options: {
configFile: PATHS.configs.tslint,
emitErrors: true,
typeCheck: true,
tsConfigFile: PATHS.configs.tsconfig,
},
},
{
test: /\.(s*)css$/,
exclude: /node_modules/,
use: ExtractTextPlugin.extract({
fallback: {
loader: 'style-loader',
options: {
sourceMap: false,
}
},
use: [
{
loader: 'css-loader',
options: {
importLoaders: 2,
localIdentName: '[name]__[hash:base64:6]',
minimize: true,
modules: true,
namedExport: true,
sourceMap: false,
},
},
{
loader: 'postcss-loader',
options: {
sourceMap: false,
},
},
{
loader: 'sass-loader',
options: {
sourceMap: false,
},
},
],
})
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment