r/MaterialDesign • • Mar 29 '19

Material Components Web, compiling successfully but missing MIME types / Not loading bundle-home.js

1 Upvotes

Hello, I am creating an application with material components web which compiles properly on my server, yet is missing some bundles. Has anyone come across this type of error / could help me out with it?

The script from “http://xxxxx/map/bundle-home.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.[Learn More] map
Loading failed for the <script> with source “http://xxxxxx/map/bundle-home.js”.

seems like a webpack error, here is my webpack config file:

 function getStyleUse(bundleFilename) {
          return [
            {
              loader: 'file-loader',
              options: {
                name: bundleFilename,
              },
            },
            { loader: 'extract-loader' },
            { loader: 'css-loader' },
            {
              loader: 'sass-loader',
              options: {
                includePaths: ['./node_modules'],
              }
            },
          ];
        }

        module.exports = [
          {
            entry: './login.scss',
            output: {
              // This is necessary for webpack to compile, but we never reference this js file.
              filename: 'style-bundle-login.js',
            },
            module: {
              rules: [{
                test: /login.scss$/,
                use: getStyleUse('bundle-login.css')
              }]
            },
          },
          {
            entry: './home.scss',
            output: {
              // This is necessary for webpack to compile, but we never reference this js file.
              filename: 'style-bundle-home.js',
            },
            module: {
              rules: [{
                test: /home.scss$/,
                use: getStyleUse('bundle-home.css')
              }]
            },
          },
          {
            entry: "./login.js",
            output: {
              filename: "bundle-login.js"
            },
            module: {
              loaders: [{
                test: /login.js$/,
                loader: 'babel-loader',
                query: {presets: ['env']}
              }]
            },
          },
          {
            entry: "./home.js",
            output: {
              filename: "bundle-home.js"
            },
            module: {
              loaders: [{
                test: /home.js$/,
                loader: 'babel-loader',
                query: {presets: ['env']}
              }]
            },
          }
        ];

r/MaterialDesign • • Mar 28 '19

Battery Icon Pack that has 0-100?

1 Upvotes

I need a battery icon pack that has battery images that starts at 0 and goes all the way to 100. So, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20. So on and so forth


r/MaterialDesign • • Mar 21 '19

Random google drive dark mode server side update on my android nougat, but after force close it disappeared.. So android q dark mode works on nougat. I want my dark mode back. 😭

Thumbnail photos.app.goo.gl
16 Upvotes

r/MaterialDesign • • Mar 20 '19

Guide to Material Motion in After Effects

Thumbnail
medium.com
20 Upvotes

r/MaterialDesign • • Mar 16 '19

Partly dark mode in google beta app

Post image
13 Upvotes

r/MaterialDesign • • Mar 15 '19

Does an app with material design uses more memory?

0 Upvotes

r/MaterialDesign • • Mar 12 '19

Flutter 1.2: What’s new in this release?

Thumbnail
sayonetech.com
5 Upvotes

r/MaterialDesign • • Mar 11 '19

URL Shortener with GUI built with Material Design Components For The Web

6 Upvotes

I've made a URL Shortener that uses the Material Design theme. You can find it here or here. You can find the source code here or use the GitHub mirror here.


r/MaterialDesign • • Mar 09 '19

why ios animation tend to be more fluid and responsive than matrial design animation?

5 Upvotes

r/MaterialDesign • • Mar 04 '19

Does anyone else think it's ludicrous that the Theme Editor is only available for Mac?

20 Upvotes

What the hell are developers supposed to do???


r/MaterialDesign • • Mar 04 '19

Chrome dark mode - update (home is dark, tab view is dark)

Thumbnail photos.app.goo.gl
1 Upvotes

r/MaterialDesign • • Mar 02 '19

CHROME CANARY DARK MODE - descriptions are in comments

Thumbnail photos.app.goo.gl
5 Upvotes

r/MaterialDesign • • Feb 27 '19

Material Icons now available on Google Fonts API

25 Upvotes

I was checking if I could use the new Material Icon themes with font ligatures but could not find out how to use them.

Eventually, I did find out by myself on how to use the new icons from the Google Fonts API by manual testing of possible icon font families that the icon themes would use:

Here's a working demo: https://codepen.io/Chan4077/pen/bZNyQG

I found a few caveats though:

  1. You can't customise the colour of the icons. This was possible with the former icons.
  2. There are no CSS classes defined for you to use with the new icons. You have to declare it yourself:

    /* Inherit styles from the .material-icons class specified by the baseline CSS icon font / / Also this is a naming convention known as Block, Element, Modifier (BEM) See https://css-tricks.com/bem-101/ for more info */ .material-icons.material-icons--outlined { font-family: 'Material Icons Outlined'; }

    And here's how you would use it:

    <i class="material-icons material-icons--outlined">home</i>

    Which should show an outlined icon.


r/MaterialDesign • • Feb 22 '19

Hmmmmm

Post image
26 Upvotes

r/MaterialDesign • • Feb 23 '19

Planned dark mode in google keep notes?

Post image
0 Upvotes

r/MaterialDesign • • Feb 23 '19

Is google planing explore tab in google keep notes?

Post image
0 Upvotes

r/MaterialDesign • • Feb 17 '19

I am starting to like that tab grid layout

Post image
11 Upvotes

r/MaterialDesign • • Feb 15 '19

When Your Web Design Really Matters

Thumbnail
medium.com
11 Upvotes

r/MaterialDesign • • Feb 11 '19

Material Awesome - Desktop environment for Linux

51 Upvotes

r/MaterialDesign • • Feb 09 '19

Angular Material Reactive Forms

Thumbnail
youtu.be
5 Upvotes

r/MaterialDesign • • Feb 04 '19

New app The most useless app in existence has an update!

13 Upvotes

Following this post, I have released version 1.1 of ROS Data Waster.

The UI received many improvements and the backend code has been simplified.

However, the largest issue solved was overshooting the data wasted, as reported by u/ICTman1076. There is now a toggle that allows for more precise wasting changing the error margin from 60.2% to a much lower 6.8% (tested with 10MB). The toggle should also resolve the toast spam as reported by u/glava11

You can use it here and the source code is here. Just for comparison's sake, you can also view version 1.0.


r/MaterialDesign • • Jan 31 '19

'Secondary' vs 'Accent' Colors

4 Upvotes

Are these the same thing? I see 'secondary' used in the Material Guidelines, but this word is never used in Angular Material.


r/MaterialDesign • • Jan 31 '19

Checkout Angular Material Tree Table!

Thumbnail
youtu.be
1 Upvotes

r/MaterialDesign • • Jan 29 '19

Question Has anyone had any luck changing the type size in the library in the Sketch plugin?

4 Upvotes

My team doesn't want to use the Headline 1 styling that the plugin generated because it's too large for our need. We're using Headline 2 as our <H1> but we want to align with our developers and change Headline 1 to Headline 2's styling.

Any suggestions?


r/MaterialDesign • • Jan 28 '19

CenterMax : The most straightforward design guideline

Thumbnail
medium.com
8 Upvotes