Sarkerdo
ETO FIASKO
- Регистрация
- 3 Янв 2016
- Сообщения
- 178
- Реакции
- 105
- Автор темы
- #1
Ребята, весь мозг сломал, почему nodemon не меняет css, изменение происходит только после полной пересборки.
Запускаю nodemon app.js
в nodemon.json прописал
	
	
	
		
в app.js
	
	
	
		
webpack
	
	
	
		
	
		
			
		
		
	
				
			Запускаю nodemon app.js
в nodemon.json прописал
		Код:
	
	{
  "ignore": [
    ".git",
    "node_modules/**/node_modules"
  ],
  "env": {
    "NODE_ENV": "development"
  },
  "ext": "js json css scss"
}
		Код:
	
	app.listen(PORT, () =>
  rainbow('App running..')
)
		Код:
	
	const { join } = require('path')
module.exports = {
  entry: './public/js/src/main.js',
  output: {
    path: join(__dirname, '/public/js/dist/'),
    filename: 'bundle.js'
  },
  performance: {
    hints: false,
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        query: {
          'presets': [
            'env', 'react', 'stage-0'
          ],
          'plugins': [
            'react-html-attrs',
            'transform-class-properties',
            'transform-decorators-legacy',
            'transform-react-jsx-source',
          ]
        }
      }
    ]
  },
  watch: true
} 
				