extract-text-plugin Questions
2
I am writing a Webpack plugin that should replace a part of the JS code with a list of Webpack's generated CSS files. Imaging this JS code:
ReactWebComponent.create(<App />, 'react-web-compo...
Astrionics asked 11/8, 2017 at 22:25
1
Solved
When using webpack 2(or 3), I could write code like:
const coreStyles = new ExtractTextPlugin('./styles/core.bundle.css');
const componentStyles = new ExtractTextPlugin('./styles/components.bundle...
Detribalize asked 21/6, 2018 at 20:28
2
Solved
Versions
"extract-text-webpack-plugin": "^2.0.0-rc.2",
"webpack": "^2.2.0",
"webpack-dev-server": "^2.2.1"
Issue
"extract-text-webpack-plugin": "^1.0.1",
"webpack": "^1.14.0",
"webpack-dev-s...
Jarv asked 31/1, 2017 at 13:15
2
Solved
I'm building a react app and im using webpack 3 with css/sass loaders + the ExtractTextPlugin to compile my styles and generate main.css. All my scss variables, mixins and partials are compiling in...
Lurlenelurline asked 11/12, 2017 at 19:46
1
I have a simple multi-page app with three pages, my webpack.config.js entry looks like:
{
entry: {
a: 'pages/a.js',
b: 'pages/b.js',
c: 'pages/c.js',
}
}
Each page consists of several React...
Samekh asked 24/10, 2017 at 15:11
2
Solved
I'm trying to implement extract-text-webpack-plugin using webpack 2 and I'm building my webpack.config.js from scratch. When I wanted to add the plugin I followed the instructions on npm. This howe...
Arda asked 7/3, 2017 at 23:40
1
Solved
Webpack 2 build doesn't work as expected in production mode using css modules option in css-loader with extract-text-webpack-plugin.
the correct generated classes are created on html elements, imp...
Kkt asked 9/7, 2017 at 15:46
3
I have several CSS entry points:
entry: {
...
styles: [
...
],
fonts: [
...
]
},
and I'm using ExtractTextPlugin to bundle CSS separately:
new ExtractTextPlugin({
filename: `[name].bu...
Golconda asked 9/3, 2017 at 9:27
1
Solved
While trying to implement page optimizations in our app, we want to have ability to generate separate CSS files per webpack chunk to improve page rendering performance for first page in our applica...
Igorot asked 8/3, 2017 at 2:28
2
I'm code splitting my JavaScript files with React Router and Webpack 2 like this:
export default {
path: '/',
component: Container,
indexRoute: {
getComponent(location, cb) {
if (isAuthentica...
Billhook asked 25/2, 2017 at 13:52
1
© 2022 - 2024 — McMap. All rights reserved.